Skip to content

Instantly share code, notes, and snippets.

View iwanbk's full-sized avatar
🎯
Focusing

Iwan Budi Kusnanto iwanbk

🎯
Focusing
  • Bandung, Indonesia
  • 06:11 (UTC +07:00)
View GitHub Profile
@iwanbk
iwanbk / bashrc_add
Last active June 27, 2024 02:35
Go + Vim Init : main file is goinit.sh
export GOROOT=$HOME/go
export GOPATH=$HOME/pathgo
export PATH=$PATH:$GOROOT/bin
export PATH=$PATH:$GOPATH/bin
@tmc
tmc / gist:776364
Created January 12, 2011 16:12
simple multiprocessing gevent echo server
import sys
from gevent import server
from multiprocessing import Process, current_process, cpu_count
def note(format, *args):
sys.stderr.write('[%s]\t%s\n' % (current_process().name, format%args))
def echo(socket, address):
print 'New connection from %s:%s' % address