Various scripts and snippets I have gathered from here and there on the web