Wpis z mikrobloga

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 editor, creates diagrams inDot 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: smack-my-bitch-up.sh - 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: kumar-asshole.sh - 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, rolls back the dude's database to the latest backup and sends a reply "no worries mate, be careful next time".

xxx: hangover.sh - another cron-job that is set to specific dates, sends automated emails like "not feeling well/gonna work from home" etc, with 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 fuckingcoffee.sh - 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 and has an SSHD running on it) 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 office.

https://www.jitbit.com/alexblog/249-now-thats-what-i-call-a-hacker/

#humorinformatykow #nieprogramowanie
  • 28
Mamy takiego jednego co grafiki układa. Wszystko oskryptowane. Chwilę przed oddaniem, gość wciska enter, i wylatuje mu wszystko co potrzebuje. Kiedyś jego pracę robiło kilka osób ( ͡º ͜ʖ͡º)


@Migfirefox: Raz udało mi się znaleźć zlecenie na wprowadzenie danych z katalogu PDF do bazy danych. Katalog miał 800 stron i klient posiadał go niby tylko wersji papierowej. Przed podjęciem się zlecenia udało mi się znaleźć PDF
@Ginden:

diagrams inDot

Co to jest ten inDot?

writes wiki-posts in Markdown

Dobre, nie znałem tego, chociaż korzystałem z Wiki. Wiesz jak się z tego korzysta? Jaki jest plik wynikowy? Czy tak jak w wiki to jest tylko dla html?

Turns out this thing starts brewing a mid-sized half-caf latte and waits another 24 (!) seconds before pouring it into a cup.

Ciekawe co się dzieje w przypadku, jak ktoś korzysta