Awhile ago, read about this hacker automating scripts in his workplace.
http://fossbytes.com/this-lazy-programmer-wrote-some-scripts-to-secretly-automate-a-lot-of-his-job/

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 https://github.com/NARKOZ/hacker-scripts