Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am opie4624 on github.
  • I am akraut (https://keybase.io/akraut) on keybase.
  • I have a public key whose fingerprint is 6D39 AD49 ECA5 93C2 2930 C1C4 B608 B8F6 E905 3BDA

To claim this, I am signing this object:

Verifying myself: My Bitcoin username is +akraut. https://onename.io/akraut
PID COMMAND
1 /sbin/init
2 [kthreadd]
3 [ksoftirqd/0]
6 [migration/0]
7 [watchdog/0]
8 [migration/1]
10 [ksoftirqd/1]
12 [watchdog/1]
13 [migration/2]
@opie4624
opie4624 / admin.py
Created August 14, 2008 19:51
Differences between old contrib.admin and new contrib.admin
from django.contrib import admin
from django.contrib.flatpages.models import FlatPage
from cms.search.models import SearchKeyword
#class SearchKeywordAdmin(admin.ModelAdmin):
# """Provide the admin functions for the SearchKeyword model."""
# pass
class SearchKeywordInline(admin.StackedInline):
@opie4624
opie4624 / data.php
Created August 20, 2008 15:19
An attempt to record and graph the signal levels from my cable modem over time as a diagnostic tool.
<?php
header("Content-type: text/xml");
include('XmlWriter.class.php');
$data = file("/home/akraut/cablemodem/siglog.csv");
$max = array();
$min = array();
$ldata = array();
$dotx = $dorx = False;
@opie4624
opie4624 / README
Created December 19, 2008 01:16
Working through the "Practical Django Projects" book from Apress
External Packages/Sources
Tagging http://code.google.com/p/django-tagging/
Markdown https://sf.net/projects/python-markdown/
pydelicious http://code.google.com/p/pydelicious/
@opie4624
opie4624 / README
Created September 7, 2009 08:20
Make emacsclient an easy habit!
Set an environment variable called ALTERNATE_EDITOR to point to this script. Then get in the habit of using emacsclient always. This will fire up emacs and wait for the server to start then fire up the file passed in via emacs client.
Right now it only works if your emacs will come up on your window manager, because that's primarily how I use it.
-Opie
SICP
====
Book
----
http://mitpress.mit.edu/sicp/
Tutorial
--------
http://icampustutor.csail.mit.edu/6.001-public/tutor.cgi
@opie4624
opie4624 / calllater.py
Created January 26, 2010 22:45
Working through the Twisted book
#!/usr/bin/env python
# encoding: utf-8
"""
calllater.py
Created by Andrew Kraut on 2010-01-25.
"""
import sys
import os
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/setuptools/setuptools-0.6.8.ebuild,v 1.4 2009/11/08 16:54:19 arfrever Exp $
EAPI="2"
SUPPORT_PYTHON_ABIS="1"
inherit distutils eutils
MY_PN="distribute"