Local: ssh -L 9998:
Remote server: nc -l
Local: nc localhost 9998
Remote Forwarding: forward remote service to local service
Local: nc -l localhost 9998
Local: ssh -R 9999:
Remote server: nc -l locahost 9999
# a higher order func
def mytime(f,args):
start=System.currentTimeMillis()
f(*args)
end=System.currentTimeMillis()
return end-start