This is where you'll find hacks and minor bits of coding that
don't merit the term ‘project’. Unfortunately, most of my coding
is done for paying clients, and it's usually secret and/or
proprietary stuff. So instead, here are some silly little hacks
Some old GIMP Script-Fu scripts to ease common photo processing tasks on the
GIMP. The scripts are Duotone, Photo Frame and Full Frame. If you're still
using the GIMP for photo editing work, they may help you.
away from their keyboards, which should in turn improve
how online users are detected. The file works with both
jQuery and Prototype. It autodetects which is available at load time.
You run a medium-to-large size MySQL server with lots of databases,
possibly for hosted websites. You want to optimise your databases, but
they are quite big. This script is for you: it maintains and optimises
MySQL databases incrementally over the course of every week.
Trolling idiots through the use of the ancient and dark art of
obfuscated shell scripting. Because sometimes you just have to.
You have a Debian, Ubuntu or similar installation, and your /var partition
keeps getting full when you upgrade. The APT archive directory is getting full
of old versions of packages. You now need a quick and clever way of cleaning up
this mess, so only the latest version of each package remains.
This is a patch adding some extra functionality to the Linux USB
touchscreen driver. It adds features useful in developing and testing
applications on touch-screens, as well as the ability to reverse the x
and/or y axes — not every tablet out there defines its axes the same
A while ago we bought a tape library with a barcode reader for
work. Unfortunately, the preprinted labels that came with the drive weren't
very good. We looked into getting custom-made replacement ones, but they were
so expensive we wondered if they were made of platinum. So I set out to make a
Postscript program to produce our own labels. This is the result.
The weird block of text to the right of my most common email/Usenet signature
is actually a program in the Internet's darling esoteric programming language
Befunge (‘darling’ taken with a pinch of salt — it's not as feared as the
insanity-inducing pit of horrors that is INTERCAL). And this is what it does.
You just bought a shiny new motherboard, but the Linux kernel doesn't
recognise some (or all) of the on-board PCI devices. Don't panic just
yet, this one's very easy!
Let's say you have a large collection of incorrectly labelled, or
downright unlabelled MP3 files arranged in directories by artist. Each
artist directory contains one subdirectory per album, with untagged
files under them. You need these files ID3-tagged with some basic
information, namely the artist and album.
You need to display Pascal's Triangle in a LaTeX document and whenever you hear
‘ampersand’ or ‘smallskip’, you go into a homicidal rage, leaving behind you a
trail of viscera and blood-stained Lion Book pages. Also, you're lazy. Put that
chainsaw down, this recipe is for you.
Here are some useful one-liner recipes to help manage Linux Device Mapper
(sometimes also known as ‘software RAID’) devices. These are too short to
warrant separate recipes. They're here because I need them for myself: no
matter how many times I've done this, I always check again.
Soup! is a Befunge quine (well, nearly) with a twist: it
uses its source code as a pattern with which to generate ASCII
art. This makes it massively obfuscated to encode the shape of its
output. The actual program is smallish, really.
You have a deep directory tree of files, and you need to flatten it
into a single directory, so that there are no files in subdirectories,
and all the files are in the same place. This is a quick shell command
to do just this.
You need to generate Pascal's Triangle in Python, and you're lazy (an admirable
trait). Alternatively, you're looking for a Pascal's Triangle generator that
can show really high-ranking rows, ones with multi-hundred-digit (or
This is a heavily modified version of the 8mm tape label template shipped with
Amanda. There are quite a few new things here.
This is a heavily modified version of the DLT tape label template
shipped with Amanda, that includes various improvements for æsthetics