Advertisement

We need your help now

Support from readers like you keeps The Journal open.

You are visiting us because we have something you value. Independent, unbiased news that tells the truth. Advertising revenue goes some way to support our mission, but this year it has not been enough.

If you've seen value in our reporting, please contribute what you can, so we can continue to produce accurate and meaningful journalism. For everyone who needs it.

Flickr/slworking2
lifehacks

A programmer wrote scripts to automate his job, email his wife and make his coffee

Beautiful.

IMAGINE YOU COULD automate parts of your life. That’s exactly what one programmer did.

It is part of a project that’s popular on GitHub, the website that hosts all kinds of software that programmers want to share with each other.

The project was shared by a programmer named Nihad Abbasov, known as Narkoz on the site. It consists of a bunch of software scripts with some funny but NSFW names.

Narkoz says that the scripts came from a another programmer. He tells the story like this: there was a programmer who left for another company, the type of guy that “if something — anything — requires more than 90 seconds of his time, he writes a script to automate that”.

After the guy left for a new job, his former coworkers were looking through his work and discovered that the guy had automated all sorts of crazy things, including parts of his job, his relationships, and making coffee.

The guy wrote one script that sends a text message “late at work” to his wife and “automatically picks reasons” from a preset list of them, describes Narkoz. It sent this text anytime there was activity with his login on the company’s computer servers after 9 pm.

He wrote another script relating to a customer he didn’t like, given the not-nice name he chose for this script. It scans his inbox for an email from the customer that uses words like “help,” “trouble,” and “sorry” and automatically rolls the guy’s database to the latest backup, then sends a reply: ”No worries mate, be careful next time.”

With another script, he automatically fired off an email excuse like “not feeling well, working from home” if he wasn’t at work and logged in to the servers by 8:45 am. He called that script “hangover.”

And the best one? He wrote a script that waits 17 seconds, then hacks into the coffee machine and orders it to start brewing a latte. The script tells the machine to wait another 24 seconds before pouring the latte into a cup, the exact time it takes to walk from the guy’s desk to the coffee machine.

And his coworkers didn’t even know the coffee machine was on the network and hackable.

Read: 6 ways your phone can improve your commute

Read: The secret to opening wine without a corkscrew has been revealed

Published with permission from
Business Insider
Your Voice
Readers Comments
16
    Submit a report
    Please help us understand how this comment violates our community guidelines.
    Thank you for the feedback
    Your feedback has been sent to our team for review.