Miscellaneous little scripts and hacks