This is now an actual repo:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Fetch and prune all remotes. | |
for r in `git remote` | |
do | |
git remote prune $r | |
git fetch $r | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A monkeypatch for ``django.dispatch`` to send signals asynchronously. | |
Usage:: | |
>>> import async_signals | |
>>> async_signals.start_the_machine() | |
``django.dispatch.Signal.send`` is replaced with an asynchronous version that | |
adds the signal to a queue processed on a background thread. The synchronous |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Apply a decorator to a whole urlconf instead of a single view function. | |
Usage:: | |
>>> from urlconf_decorator import decorate | |
>>> | |
>>> def dec(f): | |
... def wrapper(*args, **kw): | |
... print 'inside the decorator' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install growl-py | |
try: | |
import Growl | |
i = Growl.Image.imageFromPath('media/img/amo2009/logo-mozilla.gif') | |
g = Growl.GrowlNotifier(applicationName='z', applicationIcon=i, | |
notifications=['Info']) | |
g.register() | |
g.notify('Info', 'ZAMBONI', None) | |
except Exception, e: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim color file | |
" Converted from Textmate theme Twilight using Coloration v0.2.5 (http://github.com/sickill/coloration) | |
set background=dark | |
highlight clear | |
if exists("syntax_on") | |
syntax reset | |
endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var simplifyPath = function( points, tolerance ) { | |
// helper classes | |
var Vector = function( x, y ) { | |
this.x = x; | |
this.y = y; | |
}; | |
var Line = function( p1, p2 ) { | |
this.p1 = p1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# To run do: | |
# wget https://gist.github.com/raw/850359/ea02e22f021b7ebf2f602811461677ab4a3f2a9e/bootstrap.sh && chmod +x bootstrap.sh && ./bootstrap.sh && source ~/.profile | |
# | |
# Based on Amazon EC2 AMI ID ami-ccf405a5 Ubuntu Server 10.10 | |
# This script will: | |
# * install/config apache2 | |
# * install mod_wsgi | |
# * install/config nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
br = branch | |
ls = branch | |
s = status | |
a = add | |
b = branch | |
d = diff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip is a tool for installing Python packages. | |
sudo easy_install pip | |
# Essential tools for any self-respecting Python programmer. | |
sudo pip install virtualenv virtualenvwrapper ipython | |
# This is where we keep Python environments. | |
mkdir ~/.virtualenvs | |
# Set up our shell for virtualenvwrapper. |
OlderNewer