VIM survival manuals
Cmd Meaning I insert mode; Esc command mode; o append mode; :shell temp enter shell; Ctrl+z temp enter shell(v2); fg return back to vim; shift + > insert tab; /word search word; n search next; b,w jump word; gg, G jump start, end; 10g go to 10 line; Ctrl + d,u page down, up; v visual mode; y yank(copy); dd cut; p paste; :vsp vertical split tab; :sp horizontal slpit tab; Ctrl + w change focus window; Ctrl + n nerd tree :q! quick not...
Xcode_some_directories
1/Library/Developer/CoreSimulator/Profiles/Runtimes 1~/Library/Developer/CoreSimulator/Devices 1~/Library/Caches/com.apple.dt.Xcode/Downloads
upgrade hexo to 4.0.0
Recently I update my blog from 1.0.0 to 4.0.0 hexo.
git_reset_soft
例如在当前分支提交过 3 次,希望合并为 1 次提交,可以执行如下指令: 123#git reset --soft HEAD~3#git commit -m "final commit message"#git push ogirin -f
crontab
定时任务命令使用: 12345678910$ crontab -l$ crontab -e* * * * * rm /home/someuser/tmp/** * * * * // 5个都是个星号,代表每分钟都会执行。 30 * * * * // 每到 30 分的时候执行一次,也就是每小时执行两次。* 18 * * * // 每天的 18 点执行一次。* */2 * * * // 每隔 2 小时执行一次, */ 是间隔时段的表示法。
simple grep command
1grep -ri "hello" .
iOS_symbolyize_crash
1/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash userPhone.crash app.dSYM > dumpedSYM.txt
Gmail web shortcut
Gmail web 端常用的快捷键: u : 返回收件箱并刷新; j : 下一封; k : 上一封; d : 新窗口开始写信; shift + # : 删除;
Learning
Learning Pyramid
Setup DevEnv with zsh and vim
今天拿到了新电脑,本来想做迁移,回头又一想,不如重新配置一个开发环境,因为有了此文。 先介绍一下我的开发设备及配置的一些环境: 硬件设备: Thinkpad T450; Dell U2315; 软件开发环境: Ubuntu 14.04 LTS; zsh; vim; git; 其中 zsh 安装及配置如下: 安装: 12wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh 配置: 12345678910# 主题ZSH_THEME="jispwoso"# 中文支持export LANG=en_US.UTF-8export LC_ALL=en_US.UTF-8# 颜色export LSCOLORS="exfxcxdxbxexexabagacad" vim 配置如下: 12345678set numbercolor elflordsyntax onfiletype plugin indent...