diff --git a/build/update-cv.sh b/build/update-cv.sh new file mode 100755 index 0000000..afbc0cd --- /dev/null +++ b/build/update-cv.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +TMPFILE="/tmp/cv.pdf" +OUTFILE="public/files/BenRobertsCv.pdf" + +# If not specified, the input will be taken from the live website +URL="https://www.benroberts.net/cv/" +if [ "x$1" != "x" ]; then + URL=$1 +fi + +# This script has a few dependencies +WKHTMLTOPDF=`which wkhtmltopdf 2>/dev/null` +if [ $? -ne 0 ]; then + echo "This script requires wkhtmltopdf, which does not appear to be installed." + exit 1 +fi +PDFTK=`which pdftk 2>/dev/null` +if [ $? -ne 0 ]; then + echo "This script requires pdftk, which does not appear to be installed." + exit 1 +fi + +# This script should be run from the homepage root directory, not from the build directory. +if [ ! -d `dirname $OUTFILE` ]; then + echo "output directory public/files does not exist" + exit 1 +fi + +echo "Updating CV from $URL to $OUTFILE" + +# Use wkhtmltopdf to print the CV page. CSS styles hide the UI components not intended for print +$WKHTMLTOPDF --no-background $URL $TMPFILE + +# Correct display bug in wkhtmltopdf output - retrieve only the first two pages. +# CV must be kept shorter than 2 pages long. +$PDFTK $TMPFILE cat 1-2 output $OUTFILE + +# Remove temporary file +rm $TMPFILE diff --git a/public/files/BenRobertsCv.pdf b/public/files/BenRobertsCv.pdf index 0bc0bab..5845240 100644 Binary files a/public/files/BenRobertsCv.pdf and b/public/files/BenRobertsCv.pdf differ diff --git a/public/styles/normal.css b/public/styles/normal.css index ff7de06..d4aa567 100644 --- a/public/styles/normal.css +++ b/public/styles/normal.css @@ -31,7 +31,12 @@ color: #333333; text-align: center; } - + + h1 { + padding: 1.0em; + text-align: center; + } + /* Images */ @@ -73,17 +78,27 @@ .no-print { display: none; } + + .force-break { + page-break-after: always; + + /* workaround for page break control not being supported in wkhtmltopdf */ + min-height: 3.0cm; + } body { margin: 0; + + /* workaround display bug in wkhtmltopdf */ + min-height: 100cm; } - + + a { + color: inherit; + } + #page_content { margin-left: 1.5em; } - #skills { - page-break-before: always; - } - } diff --git a/source/webui/templates/cv.tpl b/source/webui/templates/cv.tpl index 9c89ad5..beb63f7 100644 --- a/source/webui/templates/cv.tpl +++ b/source/webui/templates/cv.tpl @@ -21,19 +21,25 @@
Benjamin Austin Roberts
{mailto address="me@benroberts.net" encode="hex"}
09/09/1986
British
Hampshire, United Kingdom
{mailto address="me@benroberts.net" encode="hex"}
- Design and implementation of network solutions for Atos customers in the Transport and Financial - Services industries. -
-- Installed, configured and managed an out of band console service for remote management of core - infrastructure across multiple datacentres. -
-- Designed, built and operated an 8-rack development lab containing ~70 mixed-vendor devices - for validation of a large-scale internal project. -
-- Lead planner for physical aspects of 5-datacentre core infrastructure upgrade including - circuit delivery, rack and equipment placement, power/network connectivity, and logistics - management for ~3000 items of hardware. -
+- Penetration testing of web applications and hardware devices for large financial - institutions. Development of a perl/sql based data mining survey. Take-downs of - phishing sites (via legal channels), and other anti-phishing related activities. - Windows Server/Active Directory/Exchange administration (including migrations to - newer hardware/operating system versions). -
+- Maintained and extended an existing internal web application using PHP and - Perl. Installed and configured a streaming video on demand server on Red - Hat Linux, with an embedded Linux client running on a Set Top Box. -
+- Worked in the University's Computer Science Helpdesk on an ad-hoc basis, - performing day-to-day tasks to help the System Administrators. This included - repairing and reinstalling the operating systems on lab PCs. -
+