常用git命令和工具

0. ln -s src_dir  //一个参数即可在当前目录下生成一个软链接
 
1.git command
--clone/push a branch 
    git clone <url> --branch <branch> --single-branch [<folder>]
    git push  remote branch/branch
--set upstream 
git config push upstream

 

2. generate RSA key

 ssh-keygen -t rsa -C "dizhonghu@gmail.com" 

 

3. tcpdump 

tcpdump -n host 173.39.168.250 or host 192.168.0.5
tcpdump tcp and port 1270
tcpdump tcp and port 1270 -s 0 -w tcp.dat
tcpdump -i eth0 -vnn host 10.224.166.211 -w test.cap

 

4. wireshark filter

ip.src==10.224.173.43 && udp.srcport==7901
ip.dst==10.224.173.43
ip.src==10.224.173.43 && udp.srcport==7901 && ip.dst==10.224.173.91 && udp.dstport==58504
(ip.src==10.224.173.43 && ip.dst==10.224.173.91)||(ip.src==10.224.173.91  && ip.dst==10.224.173.43)
(ip.src==10.224.173.43 && udp.srcport ==1202 && ip.dst==10.224.173.91 && udp.dstport==17237)||(ip.src==10.224.173.91 && udp.srcport==17237 && ip.dst==10.224.173.43&& udp.dstport ==1202)
(ip.src == 10.224.82.94) || (ip.src == 10.224.55.66) || (ip.dst == 10.224.82.94 )||( ip.dst == 10.224.55.66)

 

 5. vi shortcut

 

 

6. iTerm shortcut

 

 

 7. opensource lisence

 

 

8. UML

 

 

posted @ 2016-05-23 22:40  AndyHu518  阅读(548)  评论(0编辑  收藏  举报