Random scripts and code snippets for research and teaching