Skip to content

Instantly share code, notes, and snippets.

View waldoj's full-sized avatar

Waldo Jaquith waldoj

View GitHub Profile
waldoj / gist:959972
Created May 6, 2011 23:09
Google Apps MX
View gist:959972
waldoj / javascript-session.html
Created May 14, 2011 18:55
An effort to create a simple session array manipulation function in JavaScript.
View javascript-session.html
<!DOCTYPE html>
<meta charset="utf-8"/>
<script src=""></script>
google.load("jquery", "1.4.3");
<script src=""></script>
waldoj / gist:1529336
Created December 28, 2011 19:38
New York Times Spam
View gist:1529336
Received: by with SMTP id fq11cs260036bkc;
Wed, 28 Dec 2011 10:17:19 -0800 (PST)
Received: by with SMTP id f45mr43681988yhi.44.1325096238701;
Wed, 28 Dec 2011 10:17:18 -0800 (PST)
Return-Path: <>
Received: from ( [])
by with ESMTP id v2si13633651ane.208.2011.;
Wed, 28 Dec 2011 10:17:18 -0800 (PST)
Received-SPF: pass ( domain of designates as permitted sender) client-ip=;
Authentication-Results:; spf=pass ( domain of designates as permitted sender); dkim=neutral (bad format) header.i=@email.newy
waldoj /
Created May 5, 2012 01:43
Learning Python
# Import needed libraries.
import csv, urllib2
# Retrieve the contents of the CSV report file
csv_file = urllib2.urlopen('').read()
# Convert the contents of the CSV file to a list.
# (Shouldn't this use a try / except?)
Report = csv.reader(csv_file)
waldoj / gist:2856039
Created June 2, 2012 01:10
Grovo Spam
View gist:2856039
Received: by with SMTP id i8csp237073pbp;
Fri, 1 Jun 2012 15:48:48 -0700 (PDT)
Received: by with SMTP id gp1mr14781143pbc.76.1338590928850;
Fri, 01 Jun 2012 15:48:48 -0700 (PDT)
Return-Path: <>
Received: from ( [])
by with ESMTP id ro10si6383793pbc.312.2012.;
Fri, 01 Jun 2012 15:48:48 -0700 (PDT)
Received-SPF: neutral ( is neither permitted nor denied by best guess record for domain of client-ip=;
waldoj / chinese-ips.txt
Created August 4, 2012 03:13
Chinese IP Blocks
View chinese-ips.txt
waldoj / ahs-stony-point.txt
Created August 29, 2012 23:58
AHS Letter Regarding Stony Point Shooting
View ahs-stony-point.txt
Date: Wed, Aug 29, 2012 at 4:17 PM
Subject: Dear Albemarle High School Families
Dear Albemarle High School Families:
Sadly, the Albemarle County police department announced today that four people lost their lives as the result of an incident that occurred in a house on Stony Point Road. Two of those people were Albemarle County public school students, including Lily Romando, a junior at Murray High School and a wonderful young lady well known to our own Albemarle high school community. Her brother, Andrew, an eighth grader at Sutherland, also died.
Very few details are available at this time. The police are moving forward with an investigation. They have described this as an isolated incident and have said there is no danger to the larger community.
waldoj / va-transportation-feeds.txt
Created February 28, 2013 03:28
GeoJSON files for real-time Virginia transportation data.
View va-transportation-feeds.txt
These are the data sources that drive the mapping site.
waldoj / 15.2-627.json
Created March 16, 2013 18:54
Sample API response from Virginia Decoded's Law method.
View 15.2-627.json
"section_number": "15.2-627",
"section_id": "7508",
"structure_id": "1980",
"catch_line": "Department of education.",
"history": "Code 1950, § 15-324; 1956, c. 153; 1962, c. 623, § 15.1-644; 1980, c. 559; 1981, c. 246; 1982, cc. 32, 75; 1995, c. 8; 1996, c. 873; 1997, c. 587.",
"full_text": "<p>The department of education shall consist of the county school board, the division superintendent of schools and the officers and employees thereof. Except as herein otherwise provided, the county school board and the division superintendent of schools shall exercise all the powers conferred and perform all the duties imposed upon them by general law. Except for the initial elected board which shall consist of five members, the county school board shall be composed of not less than three nor more than nine members; however, there shall be at least one school board member elected from each of the county’s magisterial or election districts. The members shall be elected by popular vote from election districts cote
waldoj /
Last active December 15, 2015 07:49 — forked from JoshData/gist:5212696
The steps required to get CKAN running on Ubuntu 12.10. Note that they are not the same as [the official instructions](, because those do not work.
# Spin up an Ubuntu 12.10 LTS (64bit) server.
# The following are based on the source install of CKAN....
# install dependencies
sudo apt-get update
sudo apt-get install python-dev postgresql libpq-dev python-pip python-virtualenv git-core libcap-dev
# We'll install in the ubuntu user's home directory, i.e.