Common collection of misc code snippets