Useful utility scripts that I've written/stripped from elsewhere.