Author Topic: Automation scripts  (Read 628 times)

0 Members and 1 Guest are viewing this topic.

Offline 70CB750

  • Labor omnia vincit improbus.
  • Really Old Timer ...
  • *******
  • Posts: 14,812
  • Northern Virginia
Automation scripts
« on: December 18, 2015, 07:30:10 AM »
Got this from a friend:

 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-#$%*-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-#$%*.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) #$%*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.

xxx: holy sh*t I'm keeping those
Prokop
_______________
Pure Gas - find ethanol free gas station near you

I love it when parts come together.

Dorothy - my CB750
CB750K3F - The Red
Sidecar


CB900C

2006 KLR650

Offline 70CB750

  • Labor omnia vincit improbus.
  • Really Old Timer ...
  • *******
  • Posts: 14,812
  • Northern Virginia
Re: Automation scripts
« Reply #1 on: December 18, 2015, 07:32:24 AM »
IMHO Oscar goes to Kumar
Prokop
_______________
Pure Gas - find ethanol free gas station near you

I love it when parts come together.

Dorothy - my CB750
CB750K3F - The Red
Sidecar


CB900C

2006 KLR650

Offline RevDoc

  • Hot Shot
  • ***
  • Posts: 556
Re: Automation scripts
« Reply #2 on: December 18, 2015, 07:34:09 AM »
 ;D Clearly, some people have waaaay too much time on their hands!
Dana

'78 CB550K--Angie
'82 CB750 Custom--Eva



As soon as you straddle a bike expect every other driver on the road to suddenly start competeing for the title "Dumbestsonofa#$%*inallNorthAmerica!!"

Offline madmtnmotors

  • When did I get to be a
  • Really Old Timer ...
  • *******
  • Posts: 6,110
  • Sunny Central Florida
Re: Automation scripts
« Reply #3 on: December 18, 2015, 07:58:50 AM »
I want the coffee maker script!  8)
TAMTF...


Wilbur



Projects:
"Evolution": http://forums.sohc4.net/index.php?topic=100352.0
"P.O. Debacle": http://forums.sohc4.net/index.php/topic,126692.msg1441661.html#msg1441661
F2/F3 O-rings: http://forums.sohc4.net/index.php?topic=113672.msg1300721#msg1300721
Cam Tower Studs: https://www.mcmaster.com/#93210a017/=t19sgp
Clean up that nasty harness: http://forums.sohc4.net/index.php?topic=137351.msg1549191#msg1549191
http://forums.sohc4.net/index.php/topic,148188.msg1688494.html#msg1688494
http://forums.sohc4.net/index.php/topic,139544.msg1579364.html#msg1579364
                                          
Charging system diagnosis: http://forums.sohc4.net/index.php?topic=1012.msg8345#msg8345
Get the manuals: http://manuals.sohc4.net/cb750k/
The Dragon: http://forums.sohc4.net/index.php?topic=45183.msg1571675#msg1571675
Headlight Switch: http://forums.sohc4.net/index.php?topic=113986.msg1283236#msg1283236
Branden's leak free top end thread: http://forums.sohc4.net/index.php?topic=107040.0
Engine Lifting Made Easy: http://forums.sohc4.net/index.php/topic,58210.msg1684742.html#msg1684742
                                      http://forums.sohc4.net/index.php/topic,100352.msg1675840.html#msg1675840
Static and Dynamic Timing: http://www.hondachopper.com/garage/carb_info/timing/timing1.html
Airbox Gasket Replacement: http://forums.sohc4.net/index.php/topic,114485.msg1290000.html#msg1290000
"Café" : http://forums.sohc4.net/index.php/topic,84697.msg953814.html#msg953814
PD Carb Choke Linkage: http://forums.sohc4.net/index.php/topic,100352.msg1669248.html#msg1669248
                                    http://forums.sohc4.net/index.php/topic,110931.msg1248354.html#msg1248354
                                    http://forums.sohc4.net/index.php/topic,48858.msg515204.html#msg515204
Follow up on your damn posts: http://forums.sohc4.net/index.php/topic,144305.msg1791605.html#msg1791605
Taiwanese Cam Chain Tensioners:  http://forums.sohc4.net/index.php/topic,155043.msg1774841.html#msg1774841
Gumtwo Seat Cover: http://forums.sohc4.net/index.php/topic,164440.msg1897366.html#msg1897366
Primary Drive: http://forums.sohc4.net/index.php/topic,166063.msg1919278.html#msg1919278
Tank Latch: http://forums.sohc4.net/index.php/topic,165975.msg1919495.html#msg1919495
Shorten your forks: http://vintage-and-classic-honda-s.456789.n3.nabble.com/How-to-shorten-forks-td4042465.html DO NOT CUT THE SPRINGS!
Clutch How To: http://vintage-and-classic-honda-s.456789.n3.nabble.com/How-to-change-and-adjust-a-clutch-SOHC-td4040391.html
Late model K7/K8/F2/F3 front sprocket cover removal: http://forums.sohc4.net/index.php/topic,178428.msg2072279.html#msg2072279
630 to 530 conversion: http://forums.sohc4.net/index.php/topic,180710.msg2094423.html#msg2094423

Sent from my Tandy TRS-80!