Handy stuff that would otherwise be pasted into lots of our other projects.