Practical Solutions

Practical = ( partial | ugly | temporary | works-for-me | works-for-now )

Setting up Networked LXC Containers

11 Sep 2014

Continuing the theme of my old scripts that have been obsoleted by newer, better options, this is a script that I created first for ubuntu 10.04, and later updated for Ubuntu 12.04. The latest LTS (14.04) includes scripts with superior solutions, so I plan soon to strip out much of this.

Drupal Dev environment Post DB Update script

09 Sep 2014

These are all the things I do locally when updating my database from production.

One of my first BASH scripts for Sync’ing Drupal databases

28 Aug 2014

Back in the dark ages, before there was drush sql-sync, I created this script to update local dev environments with drupal databases on remote servers. I’m sharing it now because it still has some useful techniques for reference, even if there are better tools for the job these days.

Convert Literate BASH to Jekyll Markdown

26 Aug 2014

What the title says. This script powers this repository. If you’re viewing this as a webpage, it was generated by running this script with it’s own source code as input.

How to Enable an Encrypted Swap Partition

25 Aug 2014

I came up with this solution when ecryptfs-setup-swap failed to work on my system, possibly because I have a GUID Partition Table on my disk. So I used the Ubuntu Disks GUI utility to format my swap partition as LUKS+ext4 and then put together this script to enable it on log-in.


This website is generated from the source code it describes by this script, using Literate Programming and Jekyll. Fork me.

CARD.com encourages me to share my work like this. ShareBear wonders if maybe you'd like to work for them too?

All Content by Matt Chapman. The views are my own, and not necessarily those of of anyone who's ever employed me. The SQL VIEWS are a terrible idea; don't do that shit. Views is an awesome module, not necessarily as awesome as anyone who's ever employed me. The View is an embarrassment to humanity.