Created
August 19, 2013 03:48
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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