Public Gists by acdha

gist: 240809 Installation notes after in...
Gravatar
Sun Nov 22 16:24:07 -0800 2009
1
2
3
Python 2.6 + Virtualenv + Django 1.1 + Postgres on WebFaction
=============================================================
 
gist: 231350 Example of the new richer A...
Gravatar
Tue Nov 10 14:55:11 -0800 2009
1
2
3
"""
Support for embedding blogs as FeinCMS ApplicationContent
"""
Gravatar
Thu Nov 05 13:28:48 -0800 2009
1
2
3
# Monkeypatch this since Django 1.1 provides no way for you to
            # provide instance-specific filenames:
            media_file.file.field.generate_filename = lambda i, j: os.path.join(
Gravatar
Wed Nov 04 15:37:19 -0800 2009
1
2
3
# -*- encoding: utf-8
 
import functools
Gravatar
Wed Sep 30 07:57:47 -0700 2009
1
2
3
# encoding: utf-8
# Derived from Piotr MaliƄski's example with a few modifications to use logging and :
# http://www.rkblog.rk.edu.pl/w/p/profiling-django-object-size-and-memory-usage-pympler/
Gravatar
Sat Aug 15 13:25:37 -0700 2009
1
2
3
#!/usr/bin/env python
"""
Force Aperture to reindex data after it corrupts its thumbnails, previews, or image paths
gist: 164211 The RPM spec file used to d...
Gravatar
Fri Aug 07 15:29:07 -0700 2009
1
2
3
%define name example_project
%define version 1.2
%define release 1
Gravatar
Sat Jul 25 07:46:06 -0700 2009
1
2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
Gravatar
Wed Jul 22 13:57:56 -0700 2009
1
2
3
#!/usr/bin/env python
 
import sys
gist: 128284 WebKit/PyObjC-based website...
Gravatar
Thu Jun 11 15:48:14 -0700 2009
1
2
3
#!/usr/bin/env python
# http://gist.github.com/128284
 
gist: 89976 A simple utility to determi...
Gravatar
Fri Apr 03 14:21:38 -0700 2009
1
2
3
/*
 * MaxMalloc: a simple test to determine the maximum memory allocation
 *
Gravatar
Fri Apr 03 14:06:03 -0700 2009
1
2
3
/*
 To avoid polluting the global namespace this uses an anonymous
 function which is called with either the URL for an external
Gravatar
Fri Apr 03 14:05:30 -0700 2009
1
2
3
/*
 To avoid polluting the global namespace this uses an anonymous
 function which is called with either the URL for an external
gist: 89968 A template for creating boo...
Gravatar
Fri Apr 03 14:04:37 -0700 2009
1
2
3
/*
 To avoid polluting the global namespace this uses an anonymous
 function which is called with either the URL for an external
gist: 82622 Remove all mail from an exi...
Gravatar
Fri Mar 20 15:28:30 -0700 2009
1
2
3
#!/bin/sh
 
for msgid in `mailq | grep '<.*>' | cut -c10-27`; do
gist: 82102 How to get tab-completion i...
Gravatar
Thu Mar 19 15:27:56 -0700 2009
1
2
3
try:
    import readline
except ImportError:
gist: 80122 Demonstration side-by-side ...
Gravatar
Mon Mar 16 15:12:44 -0700 2009
1
2
3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
Gravatar
Sat Mar 14 10:01:59 -0700 2009
1
2
3
#!/usr/bin/env python
# encoding: utf-8
"""
Gravatar
Fri Mar 13 16:22:57 -0700 2009
1
2
3
#!/usr/bin/env python2.5
 
import ctypes
Gravatar
Fri Mar 13 07:04:09 -0700 2009
1
2
3
#!/bin/sh
 
vmware-guestd --cmd "vmx.set_option synctime 0 1"