Skip to content

Instantly share code, notes, and snippets.

View charliek's full-sized avatar

Charlie Knudsen charliek

View GitHub Profile
@jasonrudolph
jasonrudolph / about.md
Last active April 18, 2025 11:57
Programming Achievements: How to Level Up as a Developer
@shnjp
shnjp / tunnel.py
Created March 5, 2011 06:29
ssh tunnel for Fabric
"""
Fabric tunneling utilities
by [email protected]
class ForwardServer and relates things are refere Robey Pointer's paramiko example.
(http://bazaar.launchpad.net/~robey/paramiko/trunk/annotate/head%3A/demos/forward.py)
usage::
with make_tunnel('[email protected]:10022') as t:
@lusis
lusis / vold-stats.rb
Created January 1, 2011 06:34
Proof of concept voldemort jmx stats via jruby
require 'rubygems'
begin
require 'jmx'
rescue LoadError
puts "This must be run under JRuby. Sorry"
exit(1)
end
client = JMX.connect :host => 'localhost', :port => '9998'
import java.net.InetSocketAddress
import java.util.concurrent.Executors
import org.jboss.netty.bootstrap.ServerBootstrap
import org.jboss.netty.channel.ChannelPipelineFactory
import org.jboss.netty.channel.ChannelHandler
import org.jboss.netty.channel.Channels
import org.jboss.netty.channel.SimpleChannelUpstreamHandler
import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory
import org.jboss.netty.channel.MessageEvent