Skip to content

Instantly share code, notes, and snippets.

@inconshreveable
inconshreveable / test_listen.py
Created March 2, 2014 01:33
sqlalchemy test cases for bug in listen() on Engine events fired on the Connection
import sqlalchemy
from sqlalchemy import create_engine, Column, Integer
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
def setup():
# set up a simple in memory sqlite db with two table
engine = create_engine('sqlite:///:memory:')
Base = declarative_base(bind=engine)
class A(Base):
@inconshreveable
inconshreveable / keybase.md
Created February 10, 2016 22:08
keybase proof

Keybase proof

I hereby claim:

  • I am inconshreveable on github.
  • I am inconshreveable (https://keybase.io/inconshreveable) on keybase.
  • I have a public key ASDwe8KdGCHgHjTPWL2BVXtIHWHDJjlUqJrqx5IXlYZXnwo

To claim this, I am signing this object:

@inconshreveable
inconshreveable / client.go
Created September 13, 2016 19:07
Rails 500 Internal Server Error
package main
import (
"io"
"net"
"os"
"time"
)
func main() {