{"id":1577,"date":"2015-11-03T14:30:40","date_gmt":"2015-11-03T06:30:40","guid":{"rendered":"https:\/\/cowmanchiang.me\/wp\/?p=1577"},"modified":"2023-10-31T15:43:12","modified_gmt":"2023-10-31T07:43:12","slug":"sublime-text3-enable-package-control","status":"publish","type":"post","link":"https:\/\/cowmanchiang.me\/wp\/?p=1577","title":{"rendered":"[Sublime Text3] Enable package control"},"content":{"rendered":"<ol>\n<li>\n<p>Use ctrl + ` to open console. (or View->Show console)<\/p>\n<\/li>\n<li>\n<p>Paste the appropriate code to enable package control function.<\/p>\n<p>import urllib.request,os,hashlib; h = &#8216;2915d1851351e5ee549c20394736b442&#8217; + &#8216;8bc59f460fa1548d1514676163dafc88&#8217;; pf = &#8216;Package Control.sublime-package&#8217;; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( &#8216;http:\/\/packagecontrol.io\/&#8217; + pf.replace(&#8216; &#8216;, &#8216;%20&#8217;)).read(); dh = hashlib.sha256(by).hexdigest(); print(&#8216;Error validating download (got %s instead of %s), please try manual install&#8217; % (dh, h)) if dh != h else open(os.path.join( ipp, pf), &#8216;wb&#8217; ).write(by)<\/p>\n<p>Ref. <a href=\"https:\/\/packagecontrol.io\/installation#st3\">Sublime Text Package Control Installation<\/a><\/p>\n<\/li>\n<li>\n<p>Restart Sublime Text3<\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Use ctrl + ` to open console. (or View->Show console) Paste the appropriate code to enable package control function. import urllib.request,os,hashlib; h = &#8216;2915d1851351e5ee549c20394736b442&#8217; + &#8216;8bc59f460fa1548d1514676163dafc88&#8217;; pf = &#8216;Package Control.sublime-package&#8217;; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( &hellip; <a href=\"https:\/\/cowmanchiang.me\/wp\/?p=1577\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[80],"tags":[],"class_list":["post-1577","post","type-post","status-publish","format-standard","hentry","category-sublime-text-3"],"_links":{"self":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1577"}],"version-history":[{"count":1,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1577\/revisions"}],"predecessor-version":[{"id":1896,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1577\/revisions\/1896"}],"wp:attachment":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}