Skip to content

Instantly share code, notes, and snippets.

View benjaminmateev's full-sized avatar

Benjamin Mateev benjaminmateev

View GitHub Profile
@dip00dip
dip00dip / crontab
Created May 15, 2012 12:28
kill all leaking rails processes runnning via passenger
# every 5 minutes run this script ↓
*/12 * * * * /path/to/kill_memleaked_rails.sh
@peterc
peterc / dnsd.rb
Created December 2, 2011 23:47
Simple, scrappy UDP DNS server in Ruby (with protocol annotations)
# Simple, scrappy UDP DNS server in Ruby (with protocol annotations)
# By Peter Cooper
#
# MIT license
#
# * Not advised to use in your production environment! ;-)
# * Requires Ruby 1.9
# * Supports A and CNAME records
# * See http://www.ietf.org/rfc/rfc1035.txt for protocol guidance
# * All records get the same TTL