Skip to content

Instantly share code, notes, and snippets.

View danudey's full-sized avatar
🐪

Daniel Fox danudey

🐪
View GitHub Profile
# $Id: Portfile 52077 2009-06-09 19:30:08Z blb@macports.org $
PortSystem 1.0
name libmemcached
version 0.30
description libmemcached is a C and C++ client library to the memcached server
long_description libmemcached is a C and C++ client library for memcached. \
It has been designed to be light on memory usage, thread safe, \
and provide full access to server side methods.
1 <Proxy *>
2 Order deny,allow
3 Allow from all
4 </Proxy>
5
6 ProxyPass / http://fantasy2.livecurrent.com/
7 ProxyPassReverse / http://fantasy2.livecurrent.com/
8 ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://new.server.com/
ProxyPassReverse / http://new.server.com/
ProxyPreserveHost On
@danudey
danudey / 12lines.py
Last active August 29, 2015 14:11
Twelve lines of Christmas
#!/usr/bin/env python
gifts = ("partridge in a pear tree", "turtle doves", "french hens",
"calling birds", "golden rings", "geese-a-laying", "swans-a-swimming",
"maids-a-milking", "ladies dancing", "lords-a-leaping", "pipers piping",
"drummers drumming",)
for i in xrange(1,len(gifts)+1):
print "On the {} day of Christmas, my true love gave to me:".format(
str(i)+("th" if 4<=i%100<=20 else {1:"st",2:"nd",3:"rd"}.get(i%10, "th")))
for j, gift in list(enumerate(gifts[:i],1))[::-1]: