Skip to content

Instantly share code, notes, and snippets.

View gtzilla's full-sized avatar
🎯
Focusing

gregory tomlinson gtzilla

🎯
Focusing
View GitHub Profile
## http://stackoverflow.com/questions/675370/tab-completion-in-python-interpreter-in-os-x-terminal/987402#987402
import rlcompleter
import readline
readline.parse_and_bind ("bind ^I rl_complete")
#Whereas this one does not:
#import readline, rlcompleter
#readline.parse_and_bind("tab: complete")
import pylibmc
import Queue
import logging
import functools
"""
This is a transparent pool library that wraps a pylibmc client
from MemcachePool import mc
mc.get(key)
@gtzilla
gtzilla / Configuring Daemontools for Ubuntu 10
Created September 3, 2010 08:17
setup daemontools on ubuntu
#!/bin/sh
## you'll have to do a couple extra steps to get this running
## there are probably other ways to handle svncanboot, but this is from the linux forum
set -e
if
touch /etc/_testr_file
then
@gtzilla
gtzilla / gist:559985
Created August 31, 2010 23:45
install simplehttp/simplequeue on unbuntu
Installing simplehttp/simplequeue on Ubuntu (10 LTS?) in 6 steps with a 'clean' build.
1. need a cc compler
http://ubuntuforums.org/showthread.php?t=123542
sudo apt-get install linux-kernel-headers
sudo apt-get install build-essential
2. Need json-c, libjson
@gtzilla
gtzilla / UNLICENSE
Created August 23, 2010 17:07
contents of the Unlicense
UNLICENSE
----
http://unlicense.org/
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
@bbbrrriiiaaannn
bbbrrriiiaaannn / Auto Refresh CSS Bookmarklet
Created February 23, 2010 01:11
Bookmarklets for CSS authors: these will refresh your CSS without reloading the page.
javascript:(function(){setInterval(function(){var%20i,a,s;a=document.getElementsByTagName('link');for(i=0;%20i<a.length;%20i++){s=a[i];if(s.rel.toLowerCase().indexOf('stylesheet')>=0&&s.href){var%20h=s.href.replace(/(&|\?)forceReload\=\d+/,'');s.href=h+(h.indexOf('?')>=0?'&':'?')+'forceReload='+(new%20Date().valueOf())}}},3000)})()