(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
public class KMP { | |
private final int R; // the radix | |
private int[][] dfa; // the KMP automoton | |
private char[] pattern; // either the character array for the pattern | |
private String pat; // or the pattern string | |
// create the DFA from a String | |
public KMP(String pat) { | |
this.R = 256; |
yum remove -y pptpd ppp | |
iptables --flush POSTROUTING --table nat | |
iptables --flush FORWARD | |
rm -rf /etc/pptpd.conf | |
rm -rf /etc/ppp | |
# check the latest version on http://poptop.sourceforge.net/yum/stable/rhel6/i386/ | |
wget http://poptop.sourceforge.net/yum/stable/rhel6/i386/pptpd-1.3.4-2.el6.i686.rpm | |
wget http://poptop.sourceforge.net/yum/stable/rhel6/i386/ppp-2.4.5-23.0.rhel6.i686.rpm |
非常简单,假设你用的是 debian 或者是番茄花园 debian, | |
apt-get install racoon | |
racoon 包必须为 0.8+ | |
配置请不要随便更改,否则可能丧失某平台兼容,测试通过:iOS/OSX、黑莓(OS4/5/6/7),WebOS,诺基亚,VPNC等。 | |
软件安装完毕,修改 /etc/racoon/motd ,这是 VPN 连接成功后的 banner,可有可无; | |
修改 /etc/racoon/psk.txt ,这是 VPN 连接的 group name 和 group secret,格式很简单, 一行即可,例如 |
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]--> | |
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]--> | |
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]--> |
{ | |
"auto_complete_commit_on_tab": true, | |
"bold_folder_labels": true, | |
// "color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme", | |
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
".DS_Store", | |
".tags*", |
方滨兴 230103196007175511 |
美国著名图书频道Book Pool集结最权威的62位作者评选出了最近10年计算机专业图书: | |
1.Design Patterns: Elements of Reusable Object-Oriented Software | |
By Erich Gamma, et al | |
2.The Mythical Man-Month: Anniversary Edition | |
By Frederick P. Brooks Jr. | |
3.TCP/IP Illustrated, Volume 1: The Protocols | |
By W. Richard Stevens |
public class LockTest { | |
private static final String fileName = "C:/work/LockExample.txt"; | |
private static final String EXIT_FLAG = "BYE"; | |
private static final int NO_OF_LINES = 10; | |
private static final Lock fileLock = new ReentrantLock(); | |
private static final Condition condition = fileLock.newCondition(); | |
private static final ExecutorService executorPool = Executors.newFixedThreadPool(2); | |
public static void main(String[] args) { |
http://docs.jboss.org/jbossas/7/plugins/maven/7.4.Final/examples/deployment-example.html |