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 on gi...
How to enable Chrome into immerse mode
沉浸模式是指全屏后,不显示 Tabs;如果你发现 Control + Cmd + F (全屏切换)不生效的话,可以在全屏后再次点击 Shift + Cmd + F 即可。
使用全局 .gitignore
!!Deprecated!! 全局配置 .gitignore 之后,新建仓库,可以默认让 iOS 及 Android 项目生效: 12git config --global core.excludesfile=/path/to/global_git_ignore/.gitignore 另外,在 https://www.gitignore.io/ 可以配置其它 .gitignore 文件。
连接 iOS 设备不再自动弹出 iPhoto
在 Terminal 中执行: 1defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
Command + Tab (and) option to retore window
恢复最小化到 Dock 中的 App: 1.Command + Tab 切换至相应的程序; 2.放在 Tab(保持按着 Command),再按 option键恢复最小化的窗口;














