Some handy Ruby scripts