注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
<?php | |
$array = [ | |
['id'=>36,'reid'=>0,'topid'=>0,'title'=>'科技'], | |
['id'=>37,'reid'=>36,'topid'=>36,'title'=>'记录片'], | |
['id'=>39,'reid'=>36,'topid'=>36,'title'=>'全球科技'], | |
['id'=>99,'reid'=>37,'topid'=>36,'title'=>'BBC纪录片'], | |
['id'=>100,'reid'=>37,'topid'=>36,'title'=>'探索频道'], | |
['id'=>54,'reid'=>0,'topid'=>0,'title'=>'动画'], | |
]; |
How To Become A Hacker
Eric Steven Raymond, Thyrsus Enterprises, < esr@thyrsus.com >
Copyright © 2001 Eric S. Raymond
翻译:柯非, < zer4tul@gmail.com >
<?php | |
//加密解密方法 | |
function passport_encrypt($txt, $key) { | |
srand((double)microtime() * 1000000); | |
$encrypt_key = md5(rand(0, 32000)); | |
$ctr = 0; | |
$tmp = ''; | |
for($i = 0;$i < strlen($txt); $i++) { | |
$ctr = $ctr == strlen($encrypt_key) ? 0 : $ctr; | |
$tmp .= $encrypt_key[$ctr].($txt[$i] ^ $encrypt_key[$ctr++]); |
<?php | |
function PrintJSON( $jsonData ) | |
{ | |
header( 'Content-Type: application/json; charset=utf8' ); | |
echo $jsonData; | |
} | |
?> |