Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jacobian on github.
  • I am jacobian (https://keybase.io/jacobian) on keybase.
  • I have a public key whose fingerprint is A98A 7B92 EEEA AD56 F075 9EA9 6966 6DFE B00E 963E

To claim this, I am signing this object:

#!/bin/bash
read -p "Enter yubikey: " key
echo
curl "http://api.yubico.com/wsapi/2.0/verify?id=87&timeout=8&sl=50&nonce=askjdnkajsndjkasndkjsnad&timestamp=1&otp=$key"
OpenSSL Security Advisory [19 Mar 2015]
=======================================
OpenSSL 1.0.2 ClientHello sigalgs DoS (CVE-2015-0291)
=====================================================
Severity: High
If a client connects to an OpenSSL 1.0.2 server and renegotiates with an
invalid signature algorithms extension a NULL pointer dereference will occur.
require 'gmail-britta'
ME = %w{jacob@heroku.com jkaplan-moss@salesforce.com jacob@jacobian.org}
puts(GmailBritta.filterset(:me=>ME) do
# sputnik - label, keep in inbox; these are alerts
filter {
has ['from:sputnik']
label 'alert/sputnik'
import os
import json
import github3
import logging
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
gh = github3.login(token=os.environ['GITHUB_TOKEN'])
log = logging.getLogger(__name__)
  1. Buy a nut milk bag
  2. Measure your coffee and water: four parts water to 1 part coffee. I usually use 1lb coffee to 1/2 gallon water.
  3. Grind coffee - fine grind, similar to an aeropress.
  4. Put the coffee in the bag, and the bag in a jug, and pour the water over it all (note that the bags don't close all the way, so you need to figure out how to keep the top out of the water. This is hard to explain in text but makes perfect sense once you see the thing.
  5. Steep for 12 hours, then remove the bag and let the water drain out. Press the water out gently but don't overdo it or you'll get something too bitter.
  6. Pour over ice, or dilute about 2:1 when drinking.
import timeit
from django.conf import settings; settings.configure()
from django.dispatch import Signal
def handle(sender, **kw):
pass
handlers10 = [lambda **kw: None for i in range(10)]
handlers100 = [lambda **kw: None for i in range(100)]
import httplib2
from oauth import oauth
CONSUMER_KEY = 'szvErAxSLbVn25RD'
CONSUMER_SECRET = 'WxbMH22kUkjRgUz4'
CALLBACK_URL = 'http://jacobian.org/'
class TimetricOAuthClient(oauth.OAuthClient):
request_token_url = 'http://timetric.com/oauth/request_token/'
authorization_url = 'http://timetric.com/oauth/authorize/'
import os
import time
import readline
import ipy_defaults
import IPython.ipapi
import ipy_stock_completers
ip = IPython.ipapi.get()
o = ip.options
Function was called by...
ncalls tottime cumtime
/Users/jacob/Projects/Django/upstream/django/utils/datastructures.py:119(values) <- 283 0.000 0.000 /Users/jacob/Projects/Django/upstream/django/db/models/base.py:498(_collect_sub_objects)
11388678 61.910 70.411 /Users/jacob/Projects/Django/upstream/django/db/models/loading.py:134(get_models)
39 0.000 0.000 /Users/jacob/Projects/Django/upstream/django/db/models/sql/query.py:1077(change_aliases)
5 0.000 0.000 /Users/jacob/Projects/Django/upstream/django/db/models/sql/subqueries.py:424(as_sql)