Skip to content

Instantly share code, notes, and snippets.

View scharfmn's full-sized avatar

Michael Scharf scharfmn

  • New York, NY
View GitHub Profile
@scharfmn
scharfmn / 00-detect-virtualenv-sitepackages.py
Created December 28, 2017 03:28 — forked from henriquebastos/00-detect-virtualenv-sitepackages.py
IPython startup script to detect and inject VIRTUAL_ENV's site-packages dirs.
"""IPython startup script to detect and inject VIRTUAL_ENV's site-packages dirs.
IPython can detect virtualenv's path and injects it's site-packages dirs into sys.path.
But it can go wrong if IPython's python version differs from VIRTUAL_ENV's.
This module fixes it looking for the actual directories. We use only old stdlib
resources so it can work with as many Python versions as possible.
References:
http://stackoverflow.com/a/30650831/443564
@scharfmn
scharfmn / do-debian8-locale-issues.md
Created July 4, 2016 08:25 — forked from 5car1z/do-debian8-locale-issues.md
Debian 8 DO Locale Issues Fix

#Debian 8 DO Locale Issues Fix

##Problem

"Locale problems" in both the 32-bit & 64-bit versions of Debian 8 droplets

Create a new Debian 8 droplet and login as root: