Random snippets I've found useful at work and want to keep around.