Skip to content

Instantly share code, notes, and snippets.

View davidfg4's full-sized avatar

David Gianforte davidfg4

View GitHub Profile
#!/usr/bin/python
import time
import telnetlib
def inittn():
tn = telnetlib.Telnet("192.168.1.111", 23, 3)
tn.read_until("login:")
tn.write("lutron\r\n")
tn.read_until("password:")
#!/usr/bin/python
import time
import telnetlib
def inittn():
tn = telnetlib.Telnet("192.168.1.24", 23, 3)
tn.read_until("login:")
tn.write("lutron\r\n")
tn.read_until("password:")
tn.write("integration\r\n")
@davidfg4
davidfg4 / reddit.py
Created March 2, 2012 13:50 — forked from s-quark/reddit.py
reddit plugin for skybot
import locale
import re
import time
import datetime
from htmlentitydefs import name2codepoint
#Original from https://gist.github.com/1957440, by s_quark
#Changes by davidfg4
from util import hook, http