Skip to content

Instantly share code, notes, and snippets.

View jefftriplett's full-sized avatar
Living the dream

Jeff Triplett jefftriplett

Living the dream
View GitHub Profile
sudo tcpflow -c -i lo port 11211 | grep ': set '
siege -c 50 http://hostname.com/?nocache
<!--
format a date in Django to an html5 datetime attribute.
I have a feeling I will use this liberally...
-->
<time datetime="{{ object.publish|date:"Y-m-d\TH:m:sO" }}"></time>
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
fabfile for Django
------------------
see http://morethanseven.net/2009/07/27/fabric-django-git-apache-mod_wsgi-virtualenv-and-p/
modified for fabric 0.9/1.0 by Hraban (fiëé visuëlle)
several additions, corrections and customizations, too
from django.contrib.admin.models import LogEntry
logs = LogEntry.objects.all().order_by('-id')
for log in logs[:50]:
print log.user, log.change_message, log.is_deletion()
/* html5doctor.com Reset Stylesheet */
/* v1.4 */
/* 2009-07-27 */
/* Author: Richard Clark - http: //richclarkdesign.com */
/* http://html5doctor.com/html-5-reset-stylesheet/ */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
@jefftriplett
jefftriplett / conf.py
Created December 1, 2009 16:01 — forked from ella/conf.py
from my_settings import Settings
MONGODB_HOST = 'localhost'
MONGODB_PORT = 27017
MONGODB_DB = 'events'
MONGODB_COLLECTION = 'events'
ROUTING_KEY = 'events'
EXCHANGE = 'events'
QUEUE = 'events'
@jefftriplett
jefftriplett / localbuilder.sh
Created December 4, 2009 17:09
localbuilder scripts
#!/bin/bash
/usr/bin/python localbuilder.py \
--period=1 \
--path=/Users/jefftriplett/sites/project/tests/ \
--skip-extensions=pyc \
--command=/Users/jefftriplett/sites/project/localbuilder_run.sh
It's worth pointing out that these results come from Lawrence, KS and my ISP is Sunflower Broadband.
+-------------------------+------------+------------+------------+------------+------------+
| Domain | Your ISP | Google | 4.2.2.2 | OpenDNS | DNS Adv. |
+-------------------------+------------+------------+------------+------------+------------+
| lifehacker.com | 3 msec | 39 msec | 26 msec | 35 msec | 49 msec |
+-------------------------+------------+------------+------------+------------+------------+
| facebook.com | 2 msec | 41 msec | 26 msec | 40 msec | 50 msec |
+-------------------------+------------+------------+------------+------------+------------+
| manu-j.com | 1 msec | 38 msec | 26 msec | 35 msec | 48 msec |
# a work in progress and not very clean but this has passed from one laptop to
# another and to my imac. It lazily runs nginx as a reverse proxy from 80 > 8000
#user nobody;
worker_processes 1;
error_log /var/log/nginx/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;