As configured in my dotfiles.
start new:
tmux
start new with session name:
| # A few examples about how to use Ruby for parsing files as we could do | |
| # with Awk or Grep. This is based on what I learn fro this post: | |
| # http://code.joejag.com/2009/using-ruby-as-an-awk-replacement/ | |
| # Split each line with ':' and print the first $F[0] field | |
| awk -F: '{ print $1 }' /etc/passwd | |
| ruby -F: -nae 'puts $F[0]' /etc/passwd | |
| # Parse the 'ps aux' output | |
| # It'll print the ID process for the 'jojeda' user |
As configured in my dotfiles.
start new:
tmux
start new with session name:
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
| // Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
| // See also: http://www.paulund.co.uk/change-url-of-git-repository | |
| // These are steps for moving a git repo from Bitbucket to TFS | |
| // 1. add your SSH keys to the TFS project (google for a guide) | |
| // 2. follow the steps below | |
| git clone [email protected]:<bitbucket_user>/<repo_name>.git | |
| cd repo_name | |
| git remote rename origin bitbucket |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "os" | |
| ) |
| 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 |