Skip to content

Instantly share code, notes, and snippets.

View merickson's full-sized avatar

Matt Erickson merickson

View GitHub Profile

Keybase proof

I hereby claim:

  • I am merickson on github.
  • I am peaweematt (https://keybase.io/peaweematt) on keybase.
  • I have a public key ASC37TCvXDEvQYY_kweqUKZv2XxySTMgCwKaGmSkMSQAhQo

To claim this, I am signing this object:

2016/12/07 12:07:48 METHOD: Config
2016-12-07 12:07:48.712 flowappglue[90526:20209945] FLOHttpHandler run, tid: <NSThread: 0x5203200>{number = 2, name = (null)}
2016-12-07 12:07:48.713 flowappglue[90526:20209945] FLOHttpHandler run, about to resume task
2016-12-07 12:07:48.713 flowappglue[90526:20210148] FLOHttpHandler run, tid: <NSThread: 0x5204b20>{number = 3, name = (null)}
2016-12-07 12:07:48.714 flowappglue[90526:20210148] FLOHttpHandler run, about to resume task
runtime error: invalid memory address or nil pointer dereference
goroutine 33 [running]:
runtime/debug.Stack(0xc420059248, 0x46732a0, 0xc4200100e0)
/usr/local/Cellar/go/1.7.4/libexec/src/runtime/debug/stack.go:24 +0x79
github.com/ant0ine/go-json-rest/rest.(*RecoverMiddleware).MiddlewareFunc.func1.1(0xc4200112b0, 0x499e720, 0xc42023c870)

Keybase proof

I hereby claim:

  • I am merickson on github.
  • I am peaweematt (https://keybase.io/peaweematt) on keybase.
  • I have a public key whose fingerprint is D16C 04B2 7355 FCB2 F01C B821 7F89 50B9 C2EE 0C33

To claim this, I am signing this object:

@merickson
merickson / jscrypto.html
Created February 24, 2013 21:23
Same JS randomness HTML
<html>
<head>
<title>foo</title>
</head>
<body>
<span id='output'>foo</span>
<script type="text/javascript">
/* assuming that window.crypto.getRandomValues is available */
var data = document.getElementById('output');
var array = new Uint32Array(1);
@merickson
merickson / jscrypto.html
Created February 24, 2013 21:11
Supid HTML to check for window.crypto.getRandomValues()
<html>
<head>
<title>foo</title>
</head>
<body>
<span id='output'>foo</span>
<script type="text/javascript">
/* assuming that window.crypto.getRandomValues is available */
var data = document.getElementById('output');
var array = new Uint32Array(10);
@merickson
merickson / SqlRunner.py
Created February 16, 2013 22:18
check_output hack for python 2.6
# Hack to get subprocess.check_output() on pythons < 2.7. See:
# http://stackoverflow.com/questions/4814970/subprocess-check-output-doesnt-seem-to-exist-python-2-6-5
if "check_output" not in dir(subprocess): # duck punch it in!
def f(*popenargs, **kwargs):
if 'stdout' in kwargs:
raise ValueError('stdout argument not allowed, it will be overridden.')
process = subprocess.Popen(stdout=subprocess.PIPE, stderr=subprocess.PIPE, *popenargs, **kwargs)
output, errstr = process.communicate()
print "%s, %s" % (output, errstr,)
retcode = process.poll()
(require 'gist)
(setq gist-authenticate-function 'gist-basic-authentication)