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
from django.conf.urls.defaults import * | |
from django.db.models.loading import cache | |
from django.contrib import databrowse | |
urlpatterns = patterns('', | |
# blah blah blah | |
) | |
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
enum = 'http://readyroom/catalog/enumerate/' | |
def get_hosts(which=None): | |
qs = '' | |
if which: | |
qs = '?which=%s' % which | |
ret = urllib.urlopen(enum + 'systems/' + qs).read() | |
return ret.split() | |
env.roledefs.update({ |
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
jeff:~/D/C/fabfile {fabric} [master] $ fab -l | |
Available commands: | |
add_nrpe_cpu_check One-time command to append a new CPU check com... | |
add_user Add a new user named ``name`` to the remote sy... | |
apache | |
ar_mailer | |
build_djb_packages Download, build and install djbdns, ucspi-tcp ... | |
check_timezone If date(1) reports UTC, run dpkg-reconfigure t... | |
check_yum_repos |
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
from __future__ import with_statement | |
from fabric.api import * | |
from fabric.contrib.files import * | |
import system | |
def xen(): | |
""" |
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
# | |
# Try to make up for Ruby's lack of easy setup.py develop sorta thing. | |
# | |
function fakegem() { | |
if [[ `env | grep GEM_HOME` ]]; then | |
projects=~/Documents/Code | |
for project in `ls -1 $projects`; do | |
bin=$projects/$project/bin | |
lib=$projects/$project/lib |
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
# | |
# Initial, naive version | |
# | |
from fabric.api import * | |
def _new_rpms(): | |
""" |
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
16:12 < idangazit> termie: I had some ruminations on the gunicorn vs. django pony this morning. | |
16:13 < termie> if the gunicorn and the django pony had sex the django pony would explode as if a small but powerful explosive had been set off inside it | |
16:14 < termie> but then the django pony would reconstitute itself through the power of love | |
16:15 < robhudson> drawing on the magic once removed from Django? |
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
adsf (1.0.1) | |
bluecloth (2.0.7) | |
bundler (0.9.25) | |
compass (0.10.1) | |
cri (1.0.1) | |
diff-lcs (1.1.2) | |
grit (2.0.0) | |
haml (3.0.6) | |
mime-types (1.16) | |
nanoc (3.1.3) |
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
def debconf(package, key, value, type_='string', key_prefix=None): | |
""" | |
Seeds the debconf database with given values. | |
Take the following example:: | |
debconf( | |
package='mysql-server', | |
key='root_password', | |
type_='password', |
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
#!/usr/bin/env python | |
# Copyright (c) 2008 Nick Jensen | |
# MIT License | |
import xml.dom.minidom | |
import urllib, sys, datetime | |
PHONE_STRIPS = ('-', ' ', ')', '(') |