Hacker Scripts

I just gotta share these :)

https://github.com/NARKOZ/hacker-scripts

 

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: 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 and rolls back the staging database to the latest backup. Then 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. 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) fucking-coffee.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, 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: http://bash.im/quote/436725 (in Russian)
Pull requests with other implementations (Python, Perl, Shell, etc) are welcome.

Training

健毅 黃 was out running. He tracked 3.99 km in 23m:57s.

http://app.endomondo.com/workouts/636294101/2918479

Posted from WordPress for Android

Training

健毅 黃 was out running. He tracked 4.44 km in 27m:14s.

http://app.endomondo.com/workouts/633510859/2918479

Posted from WordPress for Android

Training

健毅 黃 was out running. He tracked 4.64 km in 26m:37s.

http://app.endomondo.com/workouts/632970001/2918479

Posted from WordPress for Android

Easy 4.3k run. A bit windy today, but still comfortable.

Training

健毅 黃 was out running. He tracked 4.55 km in 27m:27s.

http://app.endomondo.com/workouts/632230605/2918479

Posted from WordPress for Android

A photo is shaped more by the person behind the camera than by what is in front of it

“A photo is shaped more by the person behind the camera than by what is in front of it”

Having a preconception of the subject affects how a photographer takes the photo, including having no preconception at all.

Training

健毅 黃 was out running. He tracked 3.78 km in 22m:52s.

http://app.endomondo.com/workouts/630404419/2918479

Posted from WordPress for Android

I’m going back to retraining my distance. Since doing the Royal Parks, I’ve aggravated my knee, so I’m starting at low distances again, using a slightly different running posture that doesn’t – or at least tries not to – put too much weight on my left knee. I seem to be favouring that side more than my right, so I need to consciously stop that.

Training

健毅 黃 was out running. He tracked 3.01 km in 18m:01s.

http://app.endomondo.com/workouts/627582680/2918479

Posted from WordPress for Android

Since the Royal Parks HM, I’ve been having pains in my left knee and hip, so perhaps I have picked up an injury of sorts. In the meanwhile, I am reviewing my running style and trying to change it so that I’m not hitting the ground with a rigid leg, which is most likely why my knee and hip is hurting.