Some useful ruby scripts