Skip to content

Instantly share code, notes, and snippets.

@emzo
emzo / pythonUtf8.md
Created October 7, 2019 08:56 — forked from embayer/pythonUtf8.md
set python default encoding to utf-8

change default encoding

cd ~/.virtualenvs/myvirtualenv/lib/python2.x/site-packages
echo 'import sys;sys.setdefaultencoding("utf-8")' > sitecustomize.py

set default encoding for each new virtualenv

to automatically create a sitecustomize.py every time you create a virtualenv, edit your

@emzo
emzo / disable-plugins.php
Created October 4, 2011 20:11 — forked from markjaquith/disable-plugins-when-doing-local-dev.php
Disables specified WordPress plugins
<?php
/*
Plugin Name: Disable Plugins
Description: Disables plugins that you specify depending on the value of the WP_LOCAL_DEV constant
Version: 0.2
License: GPL version 2 or any later version
Author: Mark Jaquith
Author URI: http://coveredwebservices.com/
*/