19th
tip: python
quick and easy way to remove non-ascii characters from a string: filter(lambda c: ord(c)
quick and easy way to remove non-ascii characters from a string: filter(lambda c: ord(c)
use !, ^, etc. for quick navigation of previous commands http://bit.ly/1BLVdt
use parameter expansion to remove file extensions in shell scripts, e.g. ${file%.*} http://bit.ly/4mJ8ev
to create a nested defaultdict of defaultdicts, use d = defaultdict(lambda : defaultdict(int)) http://bit.ly/tUbev
use tcdump to capture packet traffic sudohttp://bit.ly/COr2z
use java.util.Hashtable for a hashtable http://tinyurl.com/d5rwv6
script from @dreev to transparently use gnu screen over ssh for persistent logins http://bit.ly/lYNtG
to fix 403 forbidden error on apache in 10.5 (leopard), create appropriate /etc/apache2/users/user.conf file http://bit.ly/242lt
use show tables like “table_name” to see if a table exists http://bit.ly/SjdBG
return rows as dicts with mysqldb using the DictCursor class http://bit.ly/56bBm