Linux Lite Forums

General => Off Topic => Topic started by: anon222 on November 24, 2015, 04:40:50 AM

Title: Scripting can be fun
Post by: anon222 on November 24, 2015, 04:40:50 AM
I hope this will inspire people to learn scripting. Simple scripts like these can speed up things and make life easier. Last one is a winner :)
Code: [Select]
xxx: (and the oscar goes to) ****ingcoffee.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.
https://www.jitbit.com/alexblog/249-now-thats-what-i-call-a-hacker/ (https://www.jitbit.com/alexblog/249-now-thats-what-i-call-a-hacker/)
Title: Re: Scripting can be fun
Post by: gold_finger on November 24, 2015, 07:10:47 AM
WOW !!!

Great find misko!  And yes, it does serve as inspiration to learn more scripting.
Title: Re: Scripting can be fun
Post by: Jerry on November 24, 2015, 07:18:22 AM
Scripting is one of the main reasons I feel so liberated on linux systems. I can't tell you how many scripts I have automating tasks on my pc right now, one to pull in EPG data for my tv card, compiz config script, conky script, to name a few. I encourage all folks to at least try their hand at learning how to write basic bash scripts.