Skip to content

Instantly share code, notes, and snippets.

Victory lap

gregory tomlinson gtzilla

Victory lap
Block or report user

Report or block gtzilla

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
View Auto Refresh CSS Bookmarklet
gtzilla / UNLICENSE
Created Aug 23, 2010
contents of the Unlicense
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
gtzilla / gist:559985
Created Aug 31, 2010
install simplehttp/simplequeue on unbuntu
View gist:559985
Installing simplehttp/simplequeue on Ubuntu (10 LTS?) in 6 steps with a 'clean' build.
1. need a cc compler
sudo apt-get install linux-kernel-headers
sudo apt-get install build-essential
2. Need json-c, libjson
View start a simplequeue on port 4414
#! /bin/sh
#Starting a simple queue on port 4414 and putting in background
export PATH=$PATH:/usr/local/bin
simplequeue -p4414 &
View Configuring Daemontools for Ubuntu 10
## 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
touch /etc/_testr_file
gtzilla / Simple Queue Command Line Args
Created Sep 4, 2010
starting simplequeue on user specified port and IP
View Simple Queue Command Line Args
# sample for
simplequeue -p 4414 -a
The actual code for command line args to simplequeue:
address = "";
port = 8080;
opterr = 0;
import pylibmc
import Queue
import logging
import functools
This is a transparent pool library that wraps a pylibmc client
from MemcachePool import mc
View my bash_profile
# display current git branch
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/
function has_virtualenv {
if [ -e .venv ]; then
curr_env=`cat .venv`
View tab completion for python interative shell in Mac OSx leopard
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")
View my starter css
filename: basic.css
author: gregory tomlinson
*{ padding:0; margin:0; }
h1,h2,h3,h4,h5,h6,input,textarea,select,option, body {
font-family:Arial, sans-serif;
You can’t perform that action at this time.