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
""" | |
A simple proxy server. Usage: | |
http://hostname:port/p/(URL to be proxied, minus protocol) | |
For example: | |
http://localhost:8080/p/www.google.com | |
""" |
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
# -*- coding: utf-8 -*- | |
""" | |
A replacement transport for Python xmlrpc library. | |
Usage: | |
>>> import xmlrpclib | |
>>> from transport import RequestsTransport | |
>>> s = xmlrpclib.ServerProxy('http://yoursite.com/xmlrpc', transport=RequestsTransport()) | |
>>> s.demo.sayHello() |
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
# ------------------------------------------------------------------# | |
# FILE: mbriggs.zsh-theme # | |
# BY: Matt Briggs ([email protected]) # | |
# BASED ON: smt by Stephen Tudor ([email protected]) # | |
# ------------------------------------------------------------------# | |
SCM_THEME_PROMPT_DIRTY="${red}⚡${reset_color}" | |
SCM_THEME_PROMPT_AHEAD="${red}!${reset_color}" | |
SCM_THEME_PROMPT_CLEAN="${green}✓${reset_color}" | |
SCM_THEME_PROMPT_PREFIX=" " |
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
<?php | |
// from http://www.highonphp.com/regex-pattern-parsing-ifconfig | |
$data = <<<EOF | |
eth0 Link encap:Ethernet HWaddr 00:50:56:33:B6:D2 | |
inet addr:192.168.12.103 Bcast:192.168.12.255 Mask:255.255.255.0 | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:1337 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:985 errors:0 dropped:0 overruns:0 carrier: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
// Inspired by http://dmitry.baranovskiy.com/work/github/ | |
d3.chart.impact = function() { | |
var width = 1, | |
height = 1, | |
duration = 0, | |
domain = null, | |
values = Object, | |
key = d3_chart_impactKey, | |
value = d3_chart_impactValue, | |
sort = null, |