Jump to content

Adi Coding Ante


Recommended Posts

Posted

There's a hilarious project that's popular on GitHub, the website that hosts all kinds of software that programmers want to share with each other.

The project was shared by a programmer named Nihad Abbasov, known as "Narkoz" on GitHub. It consists of a bunch of software scripts with some funny but NSFW names. Narkoz says that the scripts came from one of his coworkers who left for another company, the type of guy that "if something — anything — requires more than 90 seconds of his time, he writes a script to automate that."

After the guy left for a new job, his former coworkers were looking through his work and discovered that the guy had automated all sorts of crazy things, including parts of his job, his relationships, and making coffee.

 

The guy wrote one script that sends a text message "late at work" to his wife and "automatically picks reasons" from a preset list of them, says Narkoz. It sent this text anytime there was activity with his login on the company's computer servers after 9 p.m.

 

He wrote another script relating to a customer he didn't like, given the not-nice name he chose for this script. It scans his inbox for an email from the customer that uses words like "help," "trouble," and "sorry" and automatically rolls the guy's database to the latest backup, then sends a reply: "No worries mate, be careful next time."

With another script, he automatically fired off an email excuse like "not feeling well, working from home" if he wasn't at work and logged in to the servers by 8:45 a.m. He called that script "hangover."

 

 

And the best one? He wrote a script that waits 17 seconds, then hacks into the coffee machine and orders it to start brewing a latte. The script tells the machine to wait another 24 seconds before pouring the latte into a cup, the exact time it takes to walk from the guy's desk to the coffee machine.

And his coworkers didn't even know the coffee machine was on the network and hackable.

 

 

7llwf.gif

 

 

 

 

Posted

naa friend okkadu itlane chesthadu coding..asshole ani, kickass ani, shiit ani perlu pedthadu programs ki..
gp btw

Posted
sys.exit()     +     +# exit if no sessions with my username are found     +output = subprocess.check_output('who')     +if 'my_username' not in output:     + sys.exit()     +     +# returns 'None' if the key doesn't exist     +TWILIO_ACCOUNT_SID = os.environ.get('TWILIO_ACCOUNT_SID')     +TWILIO_AUTH_TOKEN = os.environ.get('TWILIO_AUTH_TOKEN')     +     +# Phone numbers     +my_number = '+xxx'     +number_of_boss = '+xxx'     +     +excuses = [     + 'Locked out',     + 'Pipes broke',     + 'Food poisoning',     + 'Not feeling well'     +]     +     +client = TwilioRestClient(TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN)     +     +client.messages.create(     + to=number_of_boss,     + from=my_number,     + body="Gonna work from home. " + random.choice(excuses)     +)     +     +try:     + f = open('logs/file.txt', 'a')     +except IOError as e:     + # dir & file don't exist; create them     + os.mkdir('logs')     + f = open('logs/file.txt', 'a')     +except Exception as e:     + print e     +else:     + pass     +     +# log it     +f.write("Message sent at " + strftime("%a, %d %b %Y %H:%M:%S") + "\n")     +f.close()

 

Posted
#!/usr/bin/env python       import gmail   import sys   import re       GMAIL_USERNAME = ENV['GMAIL_USERNAME']   GMAIL_PASSWORD = ENV['GMAIL_PASSWORD']       g = gmail.login(GMAIL_USERNAME, GMAIL_PASSWORD)       if not g.logged_in:   sys.exit()       msgs = g.inbox().mail(sender="[email protected]", unread=True)       pattern = re.compile("\bsorry\b | \bhelp\b | \bwrong\b ", flags=re.I)       for msg in msgs:   if pattern.match(msg.body):   msg.label("Database fixes")   msg.reply("No problem. I've fixed it. \n\n Please be careful next time.")

 

Posted

Abba ivanni chusina tharwatha python nerchikovali anipisthondhi

Posted

#!/usr/bin/env python       import gmail   import sys   import re       GMAIL_USERNAME = ENV['GMAIL_USERNAME']   GMAIL_PASSWORD = ENV['GMAIL_PASSWORD']       g = gmail.login(GMAIL_USERNAME, GMAIL_PASSWORD)       if not g.logged_in:   sys.exit()       msgs = g.inbox().mail(sender="[email protected]", unread=True)       pattern = re.compile("\b sorry\b | \bhelp\b | \bwrong\b ", flags=re.I)       for msg in msgs:   if pattern.match(msg.body):   msg.label("Database fixes")   msg.reply("No problem. I've fixed it. \n\n Please be careful next time.")

gp

Posted

if you send email  to     [email protected]  it will send sms to phone.  you can try some fun things like setup script to send email when some job fails, instead of monitoring outlook  ..direct text message vasthadi tumblr_n3thcp7gbK1svwpr6o10_250.gif?1402..

Posted

last lo aa coffee machine di ela chesadu....coffee machine ki network ki enti sambandham?

Posted

nenu output file la aata kavalapata kavala song lyrics raasa.. user was a chinese lady.. amey ki em ardham kaka..tkt raise chesindi to decrypt output file ani..

×
×
  • Create New...