A collection of unorganised but useful snippets.