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
fragment | |
===== | |
* initComponents | |
* initEvents | |
* initLogic | |
* onLoadComplement | |
* onItemClick |
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
ssh connect slow: | |
change /etc/ssh/ssh_config to add | |
GSSAPIAuthentication no | |
run a shell in every 3 miniutes | |
*/3 * * * * /bin/bash /path/to/shell/script | |
sudp cp /usr/share/application/empathy.desktop eclipse.desktop |
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
the number of significant digits displayed in floating point numbers. | |
precision = 14|12 | |
当float超过14|12位时会自动用科学计数法表示,所以需要用$num = springf("%.0f", $number) | |
microtime()=>return a string | |
microtime(true)=>return a float | |
echo sprintf("$.0f", $microtime() * 1000000) |
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
vim下查看文件编码 | |
:set fileencoding | |
修改文件编码为utf-8 | |
:set fileencoding=utf-8 | |
unix2dos 是把linux文件格式转换成windows文件格式 |
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
> su | |
> mount | grep system | |
> mount -o rw,remount /dev/block/stl12 /system | |
> mount | grep system | |
> mount -o ro,remount /dev/block/stl12 /system |
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
## test | |
* fh |
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
* $http_host equals always the HTTP_HOST request header. | |
* $host equals $http_host, lowercase and without the port number (if present), except when HTTP_HOST is absent or is an empty value. In that case, $host equals the value of the server_name directive of the server which processed the request. |
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
sudo dd bs=1M if=2013-09-25-wheezy-raspbian.img of=/dev/sdb | |
http://www.raspberrypi.org/downloads |
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
redis-cli KEYS '_user_token_*' |xargs redis-cli DEL |
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
git fetch origin | |
git co gh-pages | |