Skip to content

Instantly share code, notes, and snippets.

sysctl -w net.inet.ip.forwarding=1
tcp 0 452 205.244.47.142:25 189.142.18.18:2676 ESTABLISHED on (36.09/6/0)
The first number is clearly the countdown timer. Depending on status type, once the timer times out, it will retry and send out another FIN or whatever needed packet to try again. So the second number keeps track of the number of retries. Notice that the timer increases because TCP has backoff timers in case there is a traffic condition. The backoff timer avoids excessively frequent retries. Each failure results in a larger and larger backoff. The backoff could be exponential growth or linear, depending on TCP stack. I have not figured out what the 3 figure is for. Always zero in my displays.
http://superuser.com/questions/240456/how-to-interpret-the-output-of-netstat-o-netstat-timers
@ryanjin
ryanjin / Hadoop
Last active August 29, 2015 13:56
hadoop source 下载
svn co http://svn.apache.org/repos/asf/hadoop/common/tags/release-2.2.0/
mvn package -Pdist,native -DskipTests -Dtar
* 配置javahome
* 安装cmake
sudo mvn -X package -Pdist,-cbuild -DskipTests -Dtar
mac下打补丁
http://www.baeldung.com/2011/10/31/securing-a-restful-web-service-with-spring-security-3-1-part-3/
http://www.baeldung.com/2012/12/20/authentication-against-a-restful-service/
@ryanjin
ryanjin / gist:7941127
Created December 13, 2013 07:58
Android instrumentation
运用到项目中!
@ryanjin
ryanjin / gist:7808238
Created December 5, 2013 16:13
Android tasks
tasks 的执行顺序,
再一个task以multitask的flag移动另外一个activity,那么这个activity怎么和原先的task关联在一起
@ryanjin
ryanjin / gist:7808208
Created December 5, 2013 16:12
Android webview
1. onpagestarted 和 shouldOverrideUrlLoading 的执行顺序