start new:
tmux
start new with session name:
tmux new -s myname
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <stdint.h> | |
#include <pcre.h> | |
using namespace std; | |
uint32_t cpufreq() | |
{ |
" indendentation specific to file types | |
:filetype plugin indent on | |
filetype plugin on | |
" spaces instead of tabs | |
"set expandtab | |
" show line numbers | |
"set number |
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 |
GNU Octave is a high-level interpreted language, primarily intended for numerical computations.
(via GNU Octave)
Hint: I also mad an octave docset for Dash: https://github.com/obstschale/octave-docset
Task | Command |
---|---|
Fetch for later merging | git fetch [remote name] |
Pull and merge | git pull [remote name] |
Pull and rebase local changes on top (instead of merging) | git pull --rebase [remote name] |
Clone only a subset of files | git init repo cd repo git remote add origin url git config core.sparsecheckout true echo "path/*" >> .git/info/sparse-checkout git pull --depth=1 origin master |
Currently in no particular order. Most of these are kind of ancient.
Where's all the modern documentation? So much of what I've turned up searching is other folks complaining about having few options beyond reading source code.
The OREILLY books, while dated, seem to be some of the best available. Note that these can be read with a 7-day trial. Do this! At least get through the introduction section and first chapter of each to see if it's what you're after.