collection of script snippets i find useful