Skip to content

Instantly share code, notes, and snippets.

View jnoller's full-sized avatar

Jesse Noller jnoller

View GitHub Profile
@jnoller
jnoller / timedcache.py
Created March 3, 2011 20:54
timedcache
from collections import namedtuple
from datetime import datetime, timedelta
timedvalue = namedtuple('TimedValue', 'expires value')
class ExpiredException(Exception):
pass
function pyswap () {
branch=$1
if [ -f "Makefile" ]; then
echo "====================== make pycremoval ======================"
make pycremoval
echo "====================== distclean ======================"
make distclean
if test $? -ne 0 ; then
echo "distclean failed! (may be a clean checkout)?"
@jnoller
jnoller / gist:1055624
Created June 30, 2011 04:11
Cpython 2.7 vs. Python default bench run
python perf.py -r -b default ../cpython/python ../pypy/pypy/translator/goal/pypy-c
...
Report on Linux speed-python 2.6.38-8-server #42-Ubuntu SMP Mon Apr 11 03:49:04 UTC 2011 x86_64 x86_64
Total CPU cores: 24
### 2to3 ###
Min: 7.410000 -> 7.760000: 1.05x slower
Avg: 7.452000 -> 7.828000: 1.05x slower
python: /builddir/build/BUILD/Python-2.7/Objects/typeobject.c:2671: type_traverse: Assertion `type->tp_flags & (1L<<9)' failed.
Aborted (core dumped)
@jnoller
jnoller / pycon_send.txt
Created September 29, 2012 17:26
Why your employer Should send you to PyCon
LINKS:
https://us.pycon.org/2013/about/what-is-pycon/
http://juliaelman.com/blog/2012/mar/13/my-first-pycon/
http://pydanny.blogspot.com/2011/01/why-you-should-go-to-pycon.html
http://jessenoller.com/2011/09/23/pycon-2012-sponsorship-making-the-case-for-sponsorship/
https://us.pycon.org/2013/sponsors/whysponsor/
Goal of this document: Provide a compelling case for why companies should send their employees to PyCon. Ideally tie into stories like this: http://pycon.blogspot.com/2012/09/pycon-us-2013-highlighting-aweber.html and http://pycon.blogspot.com/2012/09/pycon-us-2013-highlighting-dreamhost.html
This document will be converted to markdown/html and posted to the PyCon website and the PyCon blog.
@jnoller
jnoller / gist:3846767
Created October 7, 2012 01:30
DjangoCon 2012 US Magnet Link
magnet:?xt=urn:btih:74f8f17a5fe1807288e390fec9ac975c7ff6d968&dn=DjangoCon%20US%202012&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80
@jnoller
jnoller / gist:3848238
Created October 7, 2012 12:25
Updated DjangoCon US 2012 Torrent Links/Information
Original Torrent was missing a single talk; revised all the things.
Supplement Torrent from original Torrent File: http://goo.gl/Rckdg
Magnet: magnet:?xt=urn:btih:d4ecb90b455d557000c86953b9352094c994a864&dn=DjangoCon%20US%202012&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80
Updated Torrent (Full Conference): http://goo.gl/RK0yX
Magnet Link: magnet:?xt=urn:btih:be8aa997451566a9698eb4b6c54c45794c9a8419&dn=DjangoCon%20US%202012-Supplement&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80
@jnoller
jnoller / gist:4234922
Created December 7, 2012 17:32
Rough Draft

Preamble

By now, if you're linked in to current Python / [Python Software Foundation News][1] you know that as of November 21, 2012 the [PSF now requires][2] that all conferences it sponsors, or provides grants to (and there are many), have a code of conduct in place. The exact wording of the reslution the PSF board ratified is this:

RESOLVED, that the PSF will only sponsor conferences that have or agree to create and publish a Code of Conduct/Anti Harassment guide for their conference. A basic template to work from has been generated by the Ada Initiative at [http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy][3]

Before I go much further; I'm going to state unequivocally that I am the one to blame (if you want to assign it as such) for this. I proposed, argued for it, put it on the agenda and argued for it vociferously during our meeting. However, the board approved it overwhelmingly as a body with a single abstension.

Additionally; as you read this, do not assume anything abou

http://fluentconf.com/fluent2014
http://2013.jsconf.us/
http://cssconf.com/
http://events.jquery.org/2013/austin/
http://backboneconf.com/
http://www.ng-conf.org/
http://aneventapart.com/
http://2013.cascadiajs.com/
International:
[rack] pug:devsite jesse$ time nova boot trash2 --key-name "my_key" --flavor performance1-1 --image dee7f62b-cbb1-4fdc-8dc5-33e408d8c599 --poll
+------------------------+--------------------------------------------------+
| Property | Value |
+------------------------+--------------------------------------------------+
| status | BUILD |
| updated | 2013-11-08T01:09:40Z |
| OS-EXT-STS:task_state | scheduling |
| key_name | my_key |
| image | Ubuntu 13.04 (Raring Ringtail) (Beta PVHVM Mode) |
| hostId | |