Generic useful scripts in Ruby