Skip to content

Instantly share code, notes, and snippets.

Sean Fulmer defulmere

  • Opalstack
Block or report user

Report or block defulmere

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
defulmere / gist:8b9695e415a44271061cc8e272f3c300
Last active Feb 24, 2020
How to override an old sqlite3 module with pysqlite3 in django
View gist:8b9695e415a44271061cc8e272f3c300
# first: pip install pysqlite3-binary
# then in
# these three lines swap the stdlib sqlite3 lib with the pysqlite3 package
import sys
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
'default': {

Keybase proof

I hereby claim:

  • I am defulmere on github.
  • I am defulmere ( on keybase.
  • I have a public key ASBZZcxbuMCre_b7oVVQdOToz5KHlPd_bdHCFK-QKHRa_Ao

To claim this, I am signing this object:

defulmere / gist:2180969
Created Mar 24, 2012
default ACLs on a new account home directory
View gist:2180969
# file: .
# owner: newusername
# group: newusername
defulmere / wf_php53_pear.txt
Created Dec 3, 2011
Set up pear for PHP 5.3 on WebFaction and install Mail and Mail_mime
View wf_php53_pear.txt
cd ~
pear53 config-create $HOME $HOME/.pearrc
pear53 install -o PEAR
export PATH=$HOME/pear:$PATH
pear install --alldeps Mail
pear install --alldeps Mail_mime
defulmere / lfs_webaction.txt
Created Nov 29, 2011
Commands to configure LFS on WebFaction mod_wsgi/Django
View lfs_webaction.txt
cd ~/webapps/app_name/
rm -rf lib/python2.7/{D,d}jango* myproject*
PYTHONPATH=$PWD/lib/python2.7 easy_install-2.7 -s $PWD/bin -d $PWD/lib/python2.7 zc.buildout
tar zxf django-lfs-installer-0.6.0b5.tar.gz
cd lfs-installer/
./bin/buildout -v # this will take a while to run and produce a lot of output, so be patient
sed -i "s/'ENGINE': 'django.db.backends.'/'ENGINE': 'django.db.backends.postgresql_psycopg2'/g" lfs_project/
defulmere /
Last active Feb 22, 2020
replacement for WebFaction's built-in mail2script
#!/bin/env python
This is a replacement for WebFaction's built-in mail2script (which cannot
parse large messages > 5MB).
To use it:
You can’t perform that action at this time.