General collection of code snippets that don't fit anywhere else.