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 / cmecf.appellate.menus.mobile.user.js
Last active July 7, 2020 00:09
cmecf appellate open menus
// ==UserScript==
// @name cmecf appellate open menus
// @version 0.1c
// @include https://ecf.ca*.uscourts.gov/n/AttorneyFiling/pages/secured/main.jsf
// @match https://ecf.ca1.uscourts.gov/n/AttorneyFiling/pages/secured/main.jsf
// @grant none
// ==/UserScript==
(function() {
'use strict';
@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)
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

Script started on Sun 26 Mar 2017 10:57:45 PM EDT
jhawk@contents-vnder-pressvre:~$ mutt -f/tmp/github.mbox
[?1h=          
@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
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 / 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']")
<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%">
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"}