Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am oerd on github.
  • I am oerd (https://keybase.io/oerd) on keybase.
  • I have a public key whose fingerprint is E0DE 149B 5B09 2E74 D41E 9A4E DFB6 753C C948 EE6F

To claim this, I am signing this object:

@oerd
oerd / main.py
Created December 19, 2015 20:42 — forked from gear11/main.py
Simple Python proxy server based on Flask and Requests. See: http:/python-proxy-server/gear11.com/2013/12/python-proxy-server/
"""
A simple proxy server. Usage:
http://hostname:port/p/(URL to be proxied, minus protocol)
For example:
http://localhost:8080/p/www.google.com
"""
# -*- 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()
# ------------------------------------------------------------------#
# 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=" "
@oerd
oerd / gist:5560423
Last active December 17, 2015 05:49 — forked from cschaba/gist:4740380
<?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
@oerd
oerd / logstash.conf
Created December 10, 2012 12:21
nxlog -> rsyslog -> logstash -> elasticsearch
input {
}
filter {
}
output {
@oerd
oerd / chart.impact.js
Created June 4, 2012 14:20 — forked from mehlah/chart.impact.js
d3 impact graph
// 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,