Alternatives To Hacks
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Hacker Scripts46,639
2 months ago70JavaScript
Based on a true story
Itop Docker67
4 months ago3mitShell
Combodo iTop docker image
Daily Hero14
4 years agomitPython
The bot that sends daily closed issues digest to our team
Hacker Scripts11
7 years agoJavaScript
8 years agoPython
5 years agoJavaScript
Based on a true story
8 years agoPython
Hacker Scripts2
7 years agoJavaScript
3 years agoPython
A small telegram bot for publishing mortgage rates on Russian Market
Hacker Scripts Mine1
7 years agoJavaScript
Alternatives To Hacks
Select To Compare

Alternative Project Comparisons

Hacker Scripts

Based on a true story:

xxx: OK, so, our build engineer has left for another company. The dude was literally living inside the terminal. You know, that type of a guy who loves Vim, creates diagrams in Dot and writes wiki-posts in Markdown... If something - anything - requires more than 90 seconds of his time, he writes a script to automate that.

xxx: So we're sitting here, looking through his, uhm, "legacy"

xxx: You're gonna love this

xxx: - sends a text message "late at work" to his wife (apparently). Automatically picks reasons from an array of strings, randomly. Runs inside a cron-job. The job fires if there are active SSH-sessions on the server after 9pm with his login.

xxx: - scans the inbox for emails from "Kumar" (a DBA at our clients). Looks for keywords like "help", "trouble", "sorry" etc. If keywords are found - the script SSHes into the clients server and rolls back the staging database to the latest backup. Then sends a reply "no worries mate, be careful next time".

xxx: - another cron-job that is set to specific dates. Sends automated emails like "not feeling well/gonna work from home" etc. Adds a random "reason" from another predefined array of strings. Fires if there are no interactive sessions on the server at 8:45am.

xxx: (and the oscar goes to) - this one waits exactly 17 seconds (!), then opens an SSH session to our coffee-machine (we had no frikin idea the coffee machine is on the network, runs linux and has SSHD up and running) and sends some weird gibberish to it. Looks binary. Turns out this thing starts brewing a mid-sized half-caf latte and waits another 24 (!) seconds before pouring it into a cup. The timing is exactly how long it takes to walk to the machine from the dudes desk.

xxx: holy sh*t I'm keeping those

Original: (in Russian)
Pull requests with other implementations (Python, Perl, Shell, etc) are welcome.


You need these environment variables:

# used in `smack-my-bitch-up` and `hangover` scripts

# used in `kumar_asshole` script
[email protected]

For Ruby scripts you need to install gems: gem install dotenv twilio gmail

Cron jobs

# Runs `` daily at 9:20 pm.
20 21 * * * /path/to/scripts/ >> /path/to/smack-my-bitch-up.log 2>&1

# Runs `` daily at 8:45 am.
45 8 * * * /path/to/scripts/ >> /path/to/hangover.log 2>&1

# Runs `` every 10 minutes.
*/10 * * * * /path/to/scripts/

# Runs `` hourly from 9am to 6pm.
0 9-18 * * * /path/to/scripts/

Code is released under WTFPL.

Popular Cron Projects
Popular Russian Projects
Popular Control Flow Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.