Code from talk at LRUG 11th August 2014