start new:
tmux
start new with session name:
tmux new -s myname
| import base64 | |
| import os | |
| import time | |
| """ | |
| Writing from Spark to S3 is ridiculously slow. This is because S3 is an object | |
| store and not a file system. Because of consistency model of S3, when writing | |
| Parquet (or ORC) files from Spark. Data will be stored to a temporary destination | |
| then renamed when the job is successful. As S3 is an object store, renaming files | |
| is very expensive (complete rewrite). The Spark job will only terminate when all |
| #Install dependencies | |
| sudo apt-get install build-essential git libfftw3-dev cmake libusb-1.0-0-dev | |
| #Fetch and build rtl-sdr, skip if already done (subdirectories will be created under the current directory). | |
| git clone git://git.osmocom.org/rtl-sdr.git | |
| cd rtl-sdr/ | |
| mkdir build | |
| cd build | |
| cmake ../ -DINSTALL_UDEV_RULES=ON | |
| make |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |