Category Archives: Linux

pip is broken with AttributeError: ‘module’ object has no attribute ‘SSL_ST_INIT’

This error is quite frustrating, and it has been occurring to me when I try to move old django sites to a new server. It is frustrating because once this happens, your pip is broken and you can’t do anything … Continue reading

Posted in Linux, Mac OS X, python, SSL | Comments Off on pip is broken with AttributeError: ‘module’ object has no attribute ‘SSL_ST_INIT’

Generate a certificate request but keep your old key with openssl

Until today, I didn’t know you could do this. I always just did a cert request and generated a new key. Sometimes it is handy to keep your old key, and here is how you do it. openssl req -new … Continue reading

Posted in Linux, SSL | Comments Off on Generate a certificate request but keep your old key with openssl

How to reset lost QNAP iscsi CHAP password

I wanted to change the password for one of my QNAP ISCSI luns, but there really is no way to do that with the current software. Fortunately you can recover your password by using ssh to login to your qnap, … Continue reading

Posted in QNAP | Comments Off on How to reset lost QNAP iscsi CHAP password

Unable to load psycopg2 on Mac OSX El Capitan

I upgraded to El Capitan today and of course had to reinstall homebrew and all my python and development tools. I went to try to run a django app on my machine and kept getting this error: django.core.exceptions.ImproperlyConfigured: Error loading … Continue reading

Posted in Mac OS X, postgres, python | Comments Off on Unable to load psycopg2 on Mac OSX El Capitan

How to undelete files in Linux (yes it can be done!)

extundelete. extundelete works well.  I just used it to recover 30,000+ image files that were accidentally deleted with rm -r -f. This program is a lifesaver! Check it out here: http://extundelete.sourceforge.net/ I used the –restore-all option after the –restore-directory failed … Continue reading

Posted in Linux | Comments Off on How to undelete files in Linux (yes it can be done!)