Skip to content

Instantly share code, notes, and snippets.

View georgevreilly's full-sized avatar

George V. Reilly georgevreilly

View GitHub Profile
@georgevreilly
georgevreilly / sessionrecorder.py
Last active June 15, 2023 14:45
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
georgevreilly / Sample\ of\ Emacs.txt.gz
Created June 9, 2013 21:51
Stack traces taken for https://github.com/jorgenschaefer/elpy/issues/96, using the "Sample Process" button in OS X's Activity Monitor. Both Emacs.app and the child Python process were running at 100% CPU.
This file has been truncated, but you can view the full file.
H4sICE/3tFEAA1NhbXBsZSBvZiBFbWFjcy50eHQA7P1bbyNZviD2vvenUAF+mEHn
1IgXiVK9DWzvAwPnjH08Ax8DhiFQEtlV3tmZZWVWbfegP/wRUxdGkBS5IhiXdfn9
Hmb3nt2pWBHxv6y1Ikj+l+Xff//825e/Xfz+9PVh9e3bxWQyv5lcrL8+Xcwuvq0e
vn55/Hbxb799//VicvH33z5//u3l/+/i6/ri6Y8vF99/+/vq4n71/d9Wqy8X3zZ/
a/XtL//l7W8+fN38f3xfPX56+/Ob/99v//j7/dfP337++ee//Kcvy8//+Pbbt82f
+/b2r/7Hvy8fvv2HyeXPi4t/9/tvjy8j+vcXqz9XT/+oj+Iv/8vLX/3l4k3l3/4f
P/7d//mX/2X5/dftf+HZf/xPvz8f6GH5/bevX779xx//4ufl77//x//+65fvqy/f
v/3H/8/y4X/+L/9x+6f+8v/+uny8+E+Pj09vx7r8fyaXr/7yPz0+/6Pf1r+tnl6P
8vXpbz//7csfP//4A3/531ZP354PtB3B6//HxXT+8+zi393+fPnv//Lff31cXfzX
f/y+evtv/e831//hen7x7/7z8yD/XP3753N4ej7IxfZ0Py//+PLw6+PF/zFb3Pyf