This file contains 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
Traceback (most recent call last): | |
File "bin/sphinx-build", line 19, in <module> | |
sphinx.main() | |
File "/Users/gorakhargosh/.buildout/eggs/Sphinx-1.0.7-py2.7.egg/sphinx/__init__.py", line 43, in main | |
from sphinx import cmdline | |
File "/Users/gorakhargosh/.buildout/eggs/Sphinx-1.0.7-py2.7.egg/sphinx/cmdline.py", line 18, in <module> | |
from docutils.utils import SystemMessage | |
File "/Users/gorakhargosh/.buildout/eggs/docutils-0.8-py2.7.egg/docutils/utils.py", line 18, in <module> | |
from docutils.error_reporting import ErrorOutput, SafeString | |
File "/Users/gorakhargosh/.buildout/eggs/docutils-0.8-py2.7.egg/docutils/error_reporting.py", line 47, in <module> |
This file contains 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
$ unzip gdata1.zip | |
Archive: gdata1.zip | |
End-of-central-directory signature not found. Either this file is not | |
a zipfile, or it constitutes one disk of a multi-part archive. In the | |
latter case the central directory and zipfile comment will be found on | |
the last disk(s) of this archive. | |
unzip: cannot find zipfile directory in one of gdata1.zip or | |
gdata1.zip.zip, and cannot find gdata1.zip.ZIP, period. |
This file contains 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
dict((k, v[0] if len(v) == 1 else v) for k, v in [(k, [z[1] for z in v]) for k, v in itertools.groupby(sorted([x.split('=') for x in qs.split('&')], key=lambda x: x[0]), key=lambda x: x[0])]) |
This file contains 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 -*- | |
import webbrowser | |
from pprint import pprint | |
from pyoauth.oauth1 import Credentials | |
from pyoauth.oauth1.client import Client | |
from pyoauth.httplib2.httpclient import HttpClient |
This file contains 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 -*- | |
import webbrowser | |
from pprint import pprint | |
import httplib2 | |
import sys | |
httplib2.debuglevel = 1 |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>rombouts.pdnsd</string> | |
<key>Program</key> | |
<string>/usr/local/sbin/pdnsd</string> | |
<key>Nice</key> | |
<integer>-10</integer> |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>polipo</string> | |
<key>Program</key> | |
<string>/usr/local/bin/polipo</string> | |
<key>Nice</key> | |
<integer>-10</integer> |
This file contains 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
// Sample pdnsd configuration file. Must be customized to obtain a working pdnsd setup! | |
// Read the pdnsd.conf(5) manpage for an explanation of the options. | |
// Add or remove '#' in front of options you want to disable or enable, respectively. | |
// Remove '/*' and '*/' to enable complete sections. | |
global { | |
perm_cache=999999; | |
cache_dir="/usr/local/var/cache/pdnsd"; | |
# pid_file = /var/run/pdnsd.pid; | |
run_as="nobody"; |
This file contains 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
$ pypy translate.py -Ojit | |
[platform:msg] Setting platform to 'host' cc=None | |
[translation:info] Translating target as defined by targetpypystandalone | |
[platform:execute] gcc-4.0 -c -arch x86_64 -O3 -fomit-frame-pointer -mdynamic-no-pic /var/folders/vb/qfd4br7s6055nff9kwx65j3w0000gn/T/usession-master-1/gcctest.c -o /var/folders/vb/qfd4br7s6055nff9kwx65j3w0000gn/T/usession-master-1/gcctest.o | |
Traceback (most recent call last): | |
File "app_main.py", line 53, in run_toplevel | |
f(*fargs, **fkwds) | |
File "translate.py", line 324, in <module> | |
main() | |
File "translate.py", line 210, in main |
This file contains 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: https://wiki.archlinux.org/index.php/Color_Bash_Prompt | |
# Uncomment to enable. | |
#export PROMPT_COMMAND='history -a;echo -en "\n\n\033[m\033[38;5;2m"$(( `sed -nu "s/MemFree:[\t ]\+\([0-9]\+\) kB/\1/p" /proc/meminfo`/1024))"\033[38;5;22m/"$((`sed -nu "s/MemTotal:[\t ]\+\([0-9]\+\) kB/\1/Ip" /proc/meminfo`/1024 ))MB"\t\033[m\033[38;5;55m$(< /proc/loadavg)\033[m"' | |
#export PS1='\[\e[m\n\e[1;30m\][$$:$PPID \j:\!\[\e[1;30m\]]\[\e[0;36m\] \T \d \[\e[1;30m\][\[\e[1;34m\]\u@\H\[\e[1;30m\]:\[\e[0;37m\]${SSH_TTY} \[\e[0;32m\]+${SHLVL}\[\e[1;30m\]] \[\e[1;37m\]\w\[\e[0;37m\] \n\e[0;30m($SHLVL:\!)\n\w\$ ' | |
export PS1='\[\e[m\n\e[1;30m\][$$:$PPID \j:\!\[\e[1;30m\]]\n\[\e[0;36m\]\T \d \[\e[1;30m\][\[\e[1;34m\]\u@\H\[\e[1;30m\]:\[\e[0;37m\]${SSH_TTY} \[\e[0;32m\]+${SHLVL}\[\e[1;30m\]] \[\e[1;37m\]\w\[\e[0;37m\] \n\e[0;30m\w\$ ' |