Skip to content

Instantly share code, notes, and snippets.

George V. Reilly georgevreilly

Block or report user

Report or block georgevreilly

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
georgevreilly /
Last active Feb 15, 2018
Convert large JSON blob into JSONLines. Handles corrupt records. The blob must be a JSON array, containing flat (non-nested) objects.
#!/usr/bin/env python
from __future__ import unicode_literals, absolute_import, print_function
import argparse
import codecs
from collections import OrderedDict
import json
import os
import re

Keybase proof

I hereby claim:

  • I am georgevreilly on github.
  • I am georgevreilly ( on keybase.
  • I have a public key ASBIOJqGGJhV02brqZCUoFOq_byUSWSmJyjrFXJ9YEscVgo

To claim this, I am signing this object:

georgevreilly / afterexec_queryparams.html
Last active Sep 18, 2015
SQLTap sometimes fails to capture query parameters.
View afterexec_queryparams.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="sqltap profile">
<meta name="author" content="inconshreveable">
<title>SQLTap Profiling Report</title>
georgevreilly / mysql-python-virtualenv.bat
Created Jan 15, 2014
Copy MySQL-Python into a Windows virtualenv.
View mysql-python-virtualenv.bat
@REM adapted from
if ["%VIRTUAL_ENV%"]==[""] echo Must run under a Virtualenv && goto :error
set SRCDIR=c:\Python27\Lib\site-packages
pushd "%VIRTUAL_ENV%\Lib\site-packages"
xcopy /ydfsi %SRCDIR%\MySQLdb MySQLdb
xcopy /ydfsi %SRCDIR%\_mysql* .
xcopy /ydfsi %SRCDIR%\MySQL_python-1.2.3-py2.7.egg-info MySQL_python-1.2.3-py2.7.egg-info
goto :eof
georgevreilly / cloudflare.js
Last active Dec 25, 2015
All pages on cause CPU utilization to spike to 100%, thanks to an endless stream of MessageEvents delivered by cloudflare.min.js. When CloudFlare acceleration is disabled, the problem goes away. The problem reproes in Chrome and Firefox on Windows and Mac; likely on other browsers too. I hacked a local copy of cloudflare.js t…
View cloudflare.js
/* This is cloudflare.min.js, beautified, with minor logging changes in the addEventListener callback */
/*! CloudFlareJS-0.1.5 Wed Oct 09 2013 14:04:33
CF_msg_buffer = [];
! function (a, b) {
function c(a) {
if (!(this instanceof c)) return new c(a);
if (!a || !m.isElement(a)) throw new Error("A DOM element reference is required");
return this.element = a, this.tokens = a.classList, this
georgevreilly / 01.configure
Created Oct 1, 2013
Wireshark 1.10.2 failing to build on OS X 10.7.5
View 01.configure
checking build system type... x86_64-apple-darwin11.4.2
checking host system type... x86_64-apple-darwin11.4.2
checking target system type... x86_64-apple-darwin11.4.2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
georgevreilly /
Last active Oct 6, 2019
WSGI Middleware to record Request and Response data
#!/usr/bin/env python
# -*- coding: utf-8 -*-
WSGI middleware to record requests and responses.
from __future__ import print_function, unicode_literals
import logging
georgevreilly / Sample\ of\ Emacs.txt.gz
Created Jun 9, 2013
Stack traces taken for, using the "Sample Process" button in OS X's Activity Monitor. Both and the child Python process were running at 100% CPU.
View Sample\ of\ Emacs.txt.gz
This file has been truncated, but you can view the full file.
You can’t perform that action at this time.