Some (mostly messy, but useful) scripts I wrote