TFL.GOV.UK and mozilla quick search

If you want to bookmark a  quick mozilla search from your house to another postcode you can use this URI : http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2?language=en&sessionID=0&type_destination=locator&name_destination=DESTINATION_POSTCODE&type_origin=locator&name_origin=ORIGIN_POSTCODE&place_origin=London&place_destination=London just change the DESTINATION and ORIGIN_POSTCODE to %s if you like or make it as static bookmark.

Generating md5 encrypted password for chpasswd

If you want to generate properly encrypted password to feed to chpasswd, the most easier and proper way is to do that from command line : [code lang=”bash”] echo "encryptedpassword"|openssl passwd -1 -stdin [/code] If you want to generate in pure python you can do it like that : [code lang=”python”] def md5crypt(password, salt, magic=’$1$’): […]