Awhile ago, read about this hacker automating scripts in his workplace.

He automates everything in batch job; from the office Coffee Machine up to automatic rollback whenever someone sends him email with the keyword and also whenever he comes in late. Pure genius!

So here it is ! His code on GITHUB