Skip to content

Instantly share code, notes, and snippets.

View kommen's full-sized avatar

Dieter Komendera kommen

View GitHub Profile
@kommen
kommen / dnsmasq.conf
Created May 19, 2012 10:13 — forked from MSch/dnsmasq.conf
dnsmasq configuration for tunlr.net/pandora.com/hulu/netflix
# Configuration file for dnsmasq.
#
# Format is one option per line, legal options are the same
# as the long options legal on the command line. See
# "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.
# The following two options make you a better netizen, since they
# tell dnsmasq to filter out queries which the public DNS cannot
# answer, and which load the servers (especially the root servers)
# unnecessarily. If you have a dial-on-demand link they also stop
@kommen
kommen / 0-readme.md
Created February 28, 2012 21:23 — forked from mickm/0-readme.md
ruby-1.9.3-p125 cumulative performance patch, with Xcode 4.3 command line tools compatible.

Patched ruby 1.9.3-p125 for 30% faster rails boot

What is?

This script installs a patched version of ruby 1.9.3-p125 with patches to make ruby-debug work again (#47) and boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84).

It works with Xcode 4.3 and the clang compiler it ships with its command line tools package.

Huge thanks to funny-falcon for the performance patches.

(?x)
\b
( # Capture 1: entire matched URL
(?:
[\w-]+: # URL protocol and colon
(?:
/{1,3} # 1-3 slashes
| # or
[[:alpha:][:digit:]] # Single letter or digit
# (Try not to match, say "URI::Escape")