Some useful snippets