Skip to content

Instantly share code, notes, and snippets.

View iwanbk's full-sized avatar
🎯
Focusing

Iwan Budi Kusnanto iwanbk

🎯
Focusing
View GitHub Profile
@iwanbk
iwanbk / bashrc_add
Last active March 8, 2023 07:02
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