Various hacky scripts that I wrote years ago