Preston Garrison

When setting up servers I want to easily modify the ssh config.  This simple script can be pasted when you first login.  It will remove the lines from the config that match these, and then add the new lines into the config.  You can use this method to easily modify any other config files.  

Here is a good example how to call pycurl.   It expects the proxy to be in format socks://ip:port, and will default to port 8888 if you just pass it the proxy hostname.     import cStringIO import pycurl import sys,traceback def GetPage(url, proxy=None): if proxy: port = 8888 proxy = proxy.replace(“socks://”, “”) if “:”