code snippets and useful scripts