Skip to content

Instantly share code, notes, and snippets.

View johnhawkinson's full-sized avatar

John Hawkinson johnhawkinson

  • MIT
  • Cambridge, MA
View GitHub Profile
@johnhawkinson
johnhawkinson / gist:5548532
Created May 9, 2013 16:18
CAND's 3:13-cv-00815-SC doesn't seem to function in RECAP? Logs.
5/9/13 11:58:56.017 AM [0x0-0xa11a11].org.mozilla.firefox: RECAP: Ignored path
5/9/13 11:59:00.624 AM [0x0-0xa11a11].org.mozilla.firefox: RECAP: Ignored path
5/9/13 11:59:07.364 AM [0x0-0xa11a11].org.mozilla.firefox: RECAP: Ignored path
5/9/13 11:59:10.872 AM [0x0-0xa11a11].org.mozilla.firefox: RECAP: Ignored path
5/9/13 11:59:47.652 AM [0x0-0xa11a11].org.mozilla.firefox: RECAP: Ignored path
5/9/13 11:59:53.880 AM [0x0-0xa11a11].org.mozilla.firefox: RECAP: List of stuff:
5/9/13 11:59:53.880 AM [0x0-0xa11a11].org.mozilla.firefox: RECAP: {"mimetype":"text/html; charset=UTF-8","court":"cand","name":"DktRpt.html","casenum":"263568"}
5/9/13 11:59:53.983 AM [0x0-0xa11a11].org.mozilla.firefox: RECAP: {"documents":{"12307328781":{"timestamp":"04/05/13","casenum":"327295","docnum":"2","subdocnum":0,"filename":"http://www.archive.org/download/gov.uscourts.nyed.327295/gov.uscourts.nyed.327295.2.0.pdf"},"12307752240":{"casenum":"327295","docnum":"71","subdocnum":1},"12307663829":{"casenum":"327295","docnum":"62","subdocn
Here are the logs from Console.app:
6/10/13 6:44:09.842 PM [0x0-0x97097].org.mozilla.firefox: RECAP: Ignored path
6/10/13 6:44:17.063 PM [0x0-0x97097].org.mozilla.firefox: RECAP: Ignored path
6/10/13 6:44:20.531 PM [0x0-0x97097].org.mozilla.firefox: RECAP: Response different from 200
6/10/13 6:44:24.717 PM [0x0-0x97097].org.mozilla.firefox: RECAP: Ignored path
6/10/13 6:44:38.299 PM [0x0-0x97097].org.mozilla.firefox: RECAP: Ignored path
6/10/13 6:44:53.537 PM [0x0-0x97097].org.mozilla.firefox: RECAP: Ignored path
6/10/13 6:45:09.817 PM [0x0-0x97097].org.mozilla.firefox: RECAP: List of stuff:
6/10/13 6:45:09.817 PM [0x0-0x97097].org.mozilla.firefox: RECAP: {"mimetype":"text/html; charset=UTF-8","court":"mad","name":"DktRpt.html","casenum":"137971"}
<html><head><title>CM/ECF - USDC Massachusetts - Version 6.1 as of 03/11/2013</title>
<script type="text/javascript">if (top!=self) {top.location.replace(location.href);}</script><link rel="stylesheet" type="text/css" href="/css/default.css"><script type="text/javascript" src="/lib/core.js"></script><link rel="stylesheet" type="text/css" href="/css/print.css" media="print"><script type="text/javascript" src="/cgi-bin/menu.pl?id=-1"></script></head><body BGCOLOR=F5F5F5 TEXT=01359B ><div class="noprint"><div id="topmenu" class="yuimenubar"><div class="bd"><img src="/graphics/cmecf-logo.gif" class="cmecfLogo" id="cmecfLogo" alt="CM/ECF" title="" /><img src="/graphics/menubar-help.gif" class="helpImage" id="helpImage" alt="?" title="" onMouseOver="CMECF.MainMenu.helpImageOn()" onMouseOut="CMECF.MainMenu.helpImageOff()" /><ul class="first-of-type"><li class="yuimenubaritem" style="width:11%"><a class="yuimenubaritemlabel" href="/cgi-bin/iquery.pl"><u>Q</u>uery</a></li><li class="yuimenubaritem" style="width:11%">
@johnhawkinson
johnhawkinson / durhamcounty.py
Last active February 24, 2017 04:13 — forked from pallih/durhamcounty.py
Durham County NYC - Inmate Population Search
#!/usr/bin/python
import mechanize
import lxml.html
BASE_URL = "http://www2.durhamcountync.gov/sheriff/ips/default.aspx"
def parse_names(root):
# finds the names and prints
names = root.xpath("//a[@class='rvsnavy-bold']")
class TestEmpty < Formula
url "https://github.com/cr-marcstevens/sha1collisiondetection.git",
:revision => "cb10f50d20a1c6c9efbf526c5da510c492d595b9"
version "HEAD-cb10f0"
def install
system "touch", "test-empty"
bin.install "test-empty"
end
@johnhawkinson
johnhawkinson / gist:f2ba63eaf19f7b9f921943a83ebea1af
Created March 3, 2017 17:03
libtool .lai error: No such file or directory
$ cat foo.c
int foo() { return 0; }
$ libtool --mode=compile gcc -c foo.c
libtool: compile: gcc -c foo.c -fPIC -DPIC -o .libs/foo.o
libtool: compile: gcc -c foo.c -o foo.o >/dev/null 2>&1
$ libtool --mode=link gcc -o libfoo.la foo.lo
libtool: link: ar cru .libs/libfoo.a .libs/foo.o
libtool: link: ranlib .libs/libfoo.a
libtool: link: ( cd ".libs" && rm -f "libfoo.la" && ln -s "../libfoo.la" "libfoo.la" )
$ mkdir -p /tmp/lt/prefix
Script started on Sun 26 Mar 2017 10:57:45 PM EDT
jhawk@contents-vnder-pressvre:~$ mutt -f/tmp/github.mbox
[?1h=          
Script started on Mon 27 Mar 2017 09:05:15 AM EDT
jhawk@contents-vnder-pressvre:~$ screen -r
[?7h[?1;4;6l[?1049h[?1h=jhawk@contents-vnder-pressvre:~$
jhawk@contents-vnder-pressvre:~$ mutt -f/tmp/github.mbox

@johnhawkinson
johnhawkinson / ecf-mobile-bigbutton.user.js
Last active April 18, 2020 15:52
ECF mobile bigbutton query
// ==UserScript==
// @name ECF mobile bigbutton query
// @version 1.0.8c
// @grant none
// @include https://ecf.*.uscourts.gov/cgi-bin/iquery.pl
// @include https://ecf.*.uscourts.gov/cgi-bin/*
// @run-at document-idle
// ==/UserScript==
// s = document.evaluate('//span[@id="case_number_area"]/ancestor::table[1]',document)