Useful scripts, code and notes