TopGit
GitHub Repo Review

Hacker Scripts: A Cron-Job Prank Collection

NARKOZ/hacker-scripts
HTopGit review image for NARKOZ/hacker-scripts
Review by Topgit.dev for NARKOZ/hacker-scripts, with GitHub repository stats and README context.
Quick verdict

Hacker Scripts is a small joke repository, not a tool: a handful of scripts built from a single bash.im anecdote about a sysadmin who automated his way out of every excuse at work. The scripts read as genuinely plausible engineering — real cron syntax, a telnet call to a networked coffee machine — which is exactly why the joke lands. Read it once for the laugh and the cron-job craftsmanship; there's no ongoing project behind it to depend on.

Stars
★ 49.9k
Forks
⑂ 6.6k
Language
JavaScript
License
See repository
Topic
—
Updated
Oct 2023
Homepage
—
GitHub

Based on a true story

Hacker Scripts is a GitHub repo that turns a bash.im forum post into working code: the original story described a build engineer whose colleagues found his script folder after he left the company. The README quotes that post directly, then ships shell and Ruby versions of the scripts it describes — SMS excuses, an inbox-scanning database rollback, and a coffee machine triggered over telnet.

The five scripts in the collection

  • ✓smack-my-bitch-up.sh — cron-fires weekdays at 9:20pm, checks for an active SSH session logged in after 9pm, and texts a random 'stuck at work' excuse to the user's spouse.
  • ✓kumar-asshole.sh — runs every 10 minutes, scans an inbox for help-themed emails from a named DBA, SSHes in to roll the staging database back to its last backup, then auto-replies.
  • ✓hangover.sh — cron-fires weekdays at 8:45am, checks whether anyone is logged in, and sends an automated work-from-home excuse pulled from a random-string array.
  • ✓fucking-coffee.sh — waits 17 seconds, telnets into a networked coffee machine, sends the brew command, then waits another 24 seconds, timed to finish exactly when someone reaches the machine.
  • ✓Ships a Simplified Chinese translation (README.zh-CN.md) alongside the English README.
How this repository's GitHub stars have grown over time. Source: star-history.com.View the star history ↗

Strengths

  • ✓The story framing (a full bash.im quote block) makes it a quick read instead of a wall of code — you get the joke without cloning anything.
  • ✓Each script's trigger logic is concrete enough to actually study — cron timing, session checks, and a network protocol (telnet) rather than hand-wavy pseudocode.
  • ✓WTFPL, stated directly in the README, is about as permissive as licensing gets — the terms are the two-line 'do what you want' kind.
  • ✓Small footprint: a handful of standalone scripts, not a framework you have to learn.

Real-world considerations

  • △GitHub's license field reads unset even though the README states the code is released under WTFPL at the bottom of the page — worth confirming yourself before reuse, since automated license scanners won't pick up that line.
  • △The scripts assume Twilio for SMS, Gmail SMTP for email, and telnet access to a networked coffee machine — none of which most teams have sitting around, so running any of this for real means rebuilding the integrations, not just setting env vars.
  • △This is a joke repo, not a maintained utility: the README mentions no tests, no CI, no versioning, and pull requests are invited only to add more language reimplementations of the same scripts, not new functionality.
  • △kumar-asshole.sh's core trick — SSHing into a client's server and rolling back their staging database — is presented as a punchline, not a pattern; using it as inspiration for real automation runs straight into authorization and safety problems the README never addresses.

Modern alternatives for automation

Frequently asked questions

What license are the hacker-scripts under?

Hacker Scripts is released under the WTFPL license, stated directly at the bottom of the project's README — a permissive, do-what-you-want public license with essentially no reuse restrictions.

Which programming languages are available in the repo?

Hacker Scripts is written primarily in JavaScript according to GitHub's language stats, but the README also documents shell-script versions of each script and Ruby versions that need gems installed via `gem install dotenv twilio-ruby gmail`. The project explicitly welcomes pull requests adding Python, Perl, and other language reimplementations.

How do I set up Twilio for the SMS script?

Hacker Scripts' SMS script needs two environment variables, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN, set from a Twilio account; the README lists these as used by the smack-my-bitch-up (and hangover) scripts. Ruby versions also need `gem install twilio-ruby`, plus dotenv and gmail gems, before they'll run.

Can I actually use the coffee machine script?

Only if your coffee machine is networked and accepts telnet commands, like the one in the original bash.im story. fucking-coffee.sh opens a telnet session and sends a brew command, which only works on hardware exposing that same kind of TCP socket. Most consumer coffee machines don't, so treat this one as a novelty rather than something to wire up at home.

Are these scripts based on a real story?

Hacker Scripts is built entirely around a real bash.im forum post (also archived on Archive.org) describing a build engineer whose former colleagues discovered his script folder after he left the company — so the story is real, even if the code itself was written afterward for this repo. The README quotes that original post verbatim as the project's origin story.

How do I configure Gmail credentials for the email scripts?

The kumar-asshole script needs GMAIL_USERNAME and GMAIL_PASSWORD environment variables, per Hacker Scripts' README, paired with the `gmail` Ruby gem (alongside dotenv and twilio-ruby) for the Ruby version. The README only documents Gmail credentials for that one script, not the others.

Best use cases

  • •Read it as a programmer-culture reference to link or share in a team chat when the 'automate everything' conversation comes up.
  • •Study the smack-my-bitch-up.sh cron/SSH-session-check pattern as a toy example of conditional cron logic before writing a real (non-prank) monitoring script.
  • •Use the bash.im story itself as a talk or blog anecdote about the risks of over-automating your own excuses.
  • •Practice reimplementing a small, well-defined script in a language you're learning — pull requests adding other languages are explicitly welcome.

Who should try it — and who should skip

Developers who enjoy programmer folklore, and anyone explaining 'automate everything' culture to a non-technical friend, will get the most out of Hacker Scripts — it's short enough to read in one sitting, and the cron/SSH details are real enough to double as a teaching example. Skip it if you want a maintained framework. There isn't one here — just a small set of scripts frozen in time around a single joke.

Source & attribution

Facts and quotes sourced from the NARKOZ/hacker-scripts GitHub repository and its README.

GitHub data · last synced Aug 14, 2026Reviewed by Henry
← Back to TopGit

Still deciding about hacker-scripts?

One click hands the question to an AI along with this page — see what it says about hacker-scripts.

GitHub