Skip to content

Instantly share code, notes, and snippets.

View gorakhargosh's full-sized avatar

Yesudeep Mangalapilly gorakhargosh

View GitHub Profile
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>
@gorakhargosh
gorakhargosh / gist:1099464
Created July 22, 2011 13:34
what i get on OS X
$ 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.
@gorakhargosh
gorakhargosh / query_parser.py
Created July 27, 2011 21:02 — forked from gjcourt/query_parser.py
One line query string parser (@dcramer)
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])])
#!/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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import webbrowser
from pprint import pprint
import httplib2
import sys
httplib2.debuglevel = 1
@gorakhargosh
gorakhargosh / rombouts.pdnsd.plist
Created August 2, 2011 02:53
/Library/LaunchDaemons/rombouts.pdnsd.plist
<?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>
@gorakhargosh
gorakhargosh / polipo.plist
Created August 2, 2011 02:55
/Library/LaunchDaemons/polipo.plist
<?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>
@gorakhargosh
gorakhargosh / pdnsd.conf
Created August 2, 2011 02:57
pdnsd.conf
// 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";
$ 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
# 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\$ '