This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo tcpflow -c -i lo port 11211 | grep ': set ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
siege -c 50 http://hostname.com/?nocache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from my_settings import Settings | |
MONGODB_HOST = 'localhost' | |
MONGODB_PORT = 27017 | |
MONGODB_DB = 'events' | |
MONGODB_COLLECTION = 'events' | |
ROUTING_KEY = 'events' | |
EXCHANGE = 'events' | |
QUEUE = 'events' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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; |