Skip to content

Instantly share code, notes, and snippets.

View iragsdale's full-sized avatar

Ian Ragsdale iragsdale

View GitHub Profile
@iragsdale
iragsdale / async_resolver.rb
Created November 4, 2010 22:07
Asynchronous DNS resolver based on EventMachine and net-dns
require 'eventmachine'
require 'net/dns'
require 'net/dns/resolver'
module EM # :nodoc:
module Protocols
include Logger::Severity
class AsyncResolver < Net::DNS::Resolver

Keybase proof

I hereby claim:

  • I am iragsdale on github.
  • I am iragsdale (https://keybase.io/iragsdale) on keybase.
  • I have a public key whose fingerprint is 9869 09E0 75E1 F698 70F3 9323 EB5A 50F3 B4A1 C03A

To claim this, I am signing this object:

# enable port forwarding
sysctl net.inet.ip.forwarding=1
sysctl net.inet.ip.fw.enable=1
sysctl net.inet.ip.fw.verbose=1
# divert traffic
echo rdr pass on en0 proto tcp from 192.168.33.241/32 to any port 143 -> 127.0.0.1 port 10143 >> ./pfrules
echo rdr pass on en0 proto tcp from 192.168.33.241/32 to any port 993 -> 127.0.0.1 port 10993 >> ./pfrules
pfctl -ef ./pfrules
@iragsdale
iragsdale / Pods.zip
Last active August 29, 2015 14:28
Cocoapods-4061