This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . -name .svn|xargs rm -rf | |
find . -name .settings | xargs rm -rf | |
find . -name .project | xargs rm -rf | |
find . -name .classpath | xargs rm -rf | |
find . -name target | xargs rm -rf | |
# === generate ignore file | |
echo ".project" >> ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. 进入项目根目录,在该目录下建立ignore文件,ignore文件内容: | |
.settings | |
.project | |
.classpath | |
target | |
2. 在项目根目录下执行svn propset svn:ignore -F ignore -R ./ 然后svn ci –m “your msg” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print "".join([('%s*%s=%s%s') % (x,y,x*y,('\n' if x==y else '\t')) for x in range(1,10) for y in range(1,10) if x >= y]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. jps或top 获取java的进程id | |
2. top -H -p java进程id ,可以看到各个线程占用的CPU时间 | |
3. 找出占用CPU时间最高的线程PID, python -c "print hex(线程PID)" ,获取线程ID的16进制表示 | |
4. jstack java进程id | less 根据16进制的线程ID查找具体线程的执行情况 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RTSP:实时流协议(Real Time Streaming Protocol,RTSP) | |
RTSP的请求主要有DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,OPTIONS等,顾名思义可以知道起对话和控制作用 | |
RTSP的对话过程中SETUP可以确定RTP/RTCP使用的端口,PLAY/PAUSE/TEARDOWN可以开始或者停止RTP的发送,等等 | |
RTP:实时传输协议(Real-time Transport Protocol)wiki: http://en.wikipedia.org/wiki/Real-time_Transport_Protocol | |
RTP/RTCP是实际传输数据的协议 | |
RTP传输音频/视频数据,如果是PLAY,Server发送到Client端,如果是RECORD,可以由Client发送到Server | |
整个RTP协议由两个密切相关的部分组成:RTP数据协议和RTP控制协议(即RTCP) | |
RTCP:RTP Control Protocol (RTCP),属于RTP的一部分,RTP的控制协议 wiki: http://en.wikipedia.org/wiki/RTCP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<font color="red">hello world</font> |
NewerOlder