You are currently browsing the Uncategorized category
Displaying 1 - 4 of 4 entries.

Sublime Text 2 on macOS: Package Control: Error: InvalidCertificateException

  • Posted on March 31, 2019 at 23:19

Error

The complete console error messsage is something like this:
Package Control: Error downloading package. HTTP exception InvalidCertificateException (Host codeload.github.com returned an invalid certificate ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:548)))wnloading package. Htto exception InvalidCertificateExceptio

Solution

In Sublime Text 2, go to: Preferences->Package Settings->Package Control->Settings-Default,

Here, change:

“downloader_precedence”: {
“windows”: [“wininet”],
“osx”: [“urllib”],
“linux”: [“urllib”, “curl”, “wget”]
},

To:

“downloader_precedence”: {
“windows”: [“wininet”],
“osx”: [“curl”, “urllib”],
“linux”: [“urllib”, “curl”, “wget”]
},

Installing the Python urllib will probably also solve the problem, but it might brings up new questions like: Which Python version? Is urllib in the Sublime Text search path…
Then changing the preferred downloader to curl is easier.

Credits go to LandisTwo

Python: My own Evernote

  • Posted on December 8, 2015 at 21:31

Search for file with extension (case-insensitive)

#!/usr/bin/python

import re


"""
CASE INDEPENDENT SEARCH FOR EXTENSION (JPG)
"""

filename = "KrusjMe_at_the_dentist.jpg"

prog  = re.compile(r"\.jpe{0,1}g$", re.IGNORECASE)
if prog.search(filename):
    print "Match!"
else:
    print "No match :-("

Start Debian in text-mode

  • Posted on January 6, 2014 at 21:56

Edit /etc/default/grub file, locate the following line:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet”

and change it to:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet text”

and don’t forget to run ‘update-grub’ afterwards to update.

(thanks to Eu2200 on debainadmin.com)

John Doe?

  • Posted on January 24, 2012 at 10:50

Although I didn’t want to contribute to the contest, this step was to easy not to take:

Found a JPEG-Header, did some copy-pasting et voila!

Good this be our guy?