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
mdfind "(kMDItemContentType == com.apple.addressbook.person)" | sed -e 's| |\\ |g' | xargs mdls -name kMDItemEmailAddresses | grep -E '".*@.*"' | sed -e 's|.*"\(.*@.*\)"|\1|g' | sort |
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 | |
DATABASE="benchmark_test_db" | |
TMP_DIR=/tmp | |
if [ ! -x "`which psql`" ]; then | |
echo "psql check failed: postgsql is needed" | |
exit 1 | |
fi |
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: iso-8859-1 -*- | |
__version__ = "$Revision: 0.2$" | |
__author__ = "Pierrick Terrettaz" | |
__date__ = "2006-12-09" | |
import os, sys, re | |
from optparse import OptionParser | |
def rename_file(path, search, replace, options, sub): |
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/python | |
# -*- coding: iso-8859-1 -*- | |
__version__ = "$Revision: 0.5 $" | |
__author__ = "Pierrick Terrettaz" | |
__date__ = "2006-12-09" | |
import sys | |
import time | |
import re |
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/python | |
# -*- coding: iso-8859-1 -*- | |
__version__ = "$Revision: 0.1 $" | |
__author__ = "Pierrick Terrettaz" | |
__date__ = "2008-05-08" | |
import popen2 | |
import re | |
import sys |
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/python | |
# -*- coding: iso-8859-1 -*- | |
__version__ = "$Revision: 0.1 $" | |
__author__ = "Pierrick Terrettaz" | |
__date__ = "2007-08-15" | |
import sys, os | |
import popen2 | |
import pprint |
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: iso-8859-1 -*- | |
__version__ = "$Revision: 0.1 $" | |
__author__ = "Pierrick Terrettaz" | |
__date__ = "2011-11-28" | |
import sys | |
import re | |
import urllib | |
import httplib |
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 | |
DATABASE="benchmark_test_db" | |
TMP_DIR=/tmp | |
if [ ! -x "`which psql`" ]; then | |
echo "psql check failed: postgsql is needed" | |
exit 1 | |
fi |
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/python | |
import csv, sys | |
from math import sin | |
from collections import Counter | |
class Player: | |
def __init__(self, name): | |
self.name = name | |
self.points = 0 |
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 | |
import sys, argparse, random | |
start = ord('.') | |
end = ord('Z') | |
modulo = (end - start) + 1 | |
def alphabet(): | |
return reduce(lambda a, b: '%s%s' % (a,b), map(lambda x: chr(x), range(start, end+1))) |
OlderNewer