mysql
- 编码格式
- ALTER TABLE mytable CONVERT TO CHARACTER SET utf8
- DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
4.
emacs
- 禁用tab
force Emacs to indent with spaces, never with TABs:
M-x set-variable indent-tabs-mode nil
Permanently force Emacs to indent with spaces, never with TABs:
(setq-default indent-tabs-mode nil); # put this in your .emacs file
angularjs
- 不要在child scope里对 $parent.property赋值,可读不可写(原理不明)
linux
- PORT=8092 node server.js (为什么shell中能直接设置环境变量而且不用分隔符?)
- | 是管道, >是重定向
- find libs/ -name “*.so” | xargs rm -f
- vim里 :%s#^#pangu://localcluster/# 正则表达式替换