Skip to content

Instantly share code, notes, and snippets.

View AaronO's full-sized avatar

Aaron O'Mullan AaronO

View GitHub Profile
@AaronO
AaronO / pr.md
Created October 28, 2013 19:14 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@AaronO
AaronO / stress_client.py
Created August 21, 2012 15:02 — forked from bombela/stress_client.py
stress PyZMQ to trigger the 'missing event' problem
#!/usr/bin/env python
import zerorpc.gevent_zmq as zmq
context = zmq.Context()
c = zmq.Socket(context, zmq.XREQ)
c.connect('tcp://127.0.0.1:9998')
print 'running'