Wednesday, May 28, 2014


My Debian Jessie hibernation option is somehow broken and I needed a quick way to set the laptop to hibernate when I'm on the road. As always, the github gist is below for both the script and the sudo config:

= ^ . ^ =

Monday, May 26, 2014

Drupal 2 Pgpass - Convert Drupal 6 pgsql db_url to .pgpass format and set permissions

I needed to automagically connect to the database of some drupal 6 instances, so I wrote this script to convert the settings.php [1] $db_url [2] into the ~/.pgpass [3] file, remember to also set the apropriate permissions (0600) and also be sure to own the file, otherwise it won't work.

Related resources

= ^ . ^ =