Skip to content

Instantly share code, notes, and snippets.

@thushan
Created August 19, 2013 03:48
Show Gist options
  • Save thushan/6265616 to your computer and use it in GitHub Desktop.
Save thushan/6265616 to your computer and use it in GitHub Desktop.
Install Package Control for Sublime Text 3 behind a proxy powered by CNtlm on localhost on port 3128.
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler({"http": "http://127.0.0.1:3128"})) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment