As configured in my dotfiles.
start new:
tmux
start new with session name:
| # Path to your oh-my-zsh configuration. | |
| export ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| #export ZSH_THEME="robbyrussell" | |
| export ZSH_THEME="zanshin" |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
Create an empty git repo or reinitialize an existing one
git init| OS=`echo \`uname\` | tr '[:upper:]' '[:lower:]'` | |
| AURL="https://gist.githubusercontent.com/hightemp/5071909/raw/" | |
| ANAME=".bash_aliases" | |
| TMPAPATH="/tmp/$ANAME" | |
| HOMEAPATH="~/$ANAME" | |
| [ "$OS" = "windowsnt" ] && OS_WIN="yes" | |
| [ "$OS" = "darwin" ] && OS_MAC="yes" | |
| [ "$OS" = "linux" ] && OS_LIN="yes" |
| comment | |
| comment punctuation | |
| comment.block.documentation | |
| comment.block.preprocessor | |
| comment.documentation | |
| constant | |
| constant.character | |
| constant.character punctuation | |
| constant.character.entity | |
| constant.character.escape |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.