- Homebrew, Coreutils
- Tools: ssh, nc, awk, grep, vim, cut, sort, tmux, less, tail, cut, ssh, htop, psql
- Dotfiles: Configs: ~/.bashrc, ~/.pgpass, ~/.s3cfg, ~/.psqlrc, ~/ssh/config
- What is
source /data/virtualenv/default/bin/activate
ssh deploy@::1
- SSH tunnels
- Reverse tunnel
- Proxys
- Simple chat server example using nc and ssh tunnels
Tmux is a windowing manager that allows a user to utilize space. Its predecessor is screen. An major advantage is its use of sessions, which leverages nohup -- a utility that keeps tmux running in even if the user has exited.
The default prefix is [ctrl] then b
which move tmux into a context.
Action | Shortcut |
---|---|
Split horizontally | [prefix] then " |
Split vertically | [prefix] then % |
Move between windows | [prefix] then [arrow] |
Scroll model | [prefix] then [ |
Rename session | [prefix] then $ |
Detach session | [prefix] then d |
- Create new session:
tmux new -s [session name]
- List sessions:
tmux ls
- Attach existing session:
tmux attach -t [session name]
- Continue to setup computer
- Two-Factor authentication
- Generate SSH keys
- Add to nodes
- Add to github
- SSH rsync setup
- Two-Factor authentication
- Learn more about command line
- Custom command prompt PS1
- Query endpoints with jq, httpie
- Setup a virtual machine and repos
- Walk through of python environemnt
- virtualenv, /etc/supervisor.d, workers, htop, symlinks, cron
- Raw logs (serial vs parallel)
- Sentry
- New Relic
- Message broker
- psqlrc
- Postgres \q, \d, \d+, \copy
- Transactions, Dump and Restore
- Walk through of SQL table relationships
- Source of truth
- Root cause analysis
- Solutions
- Preventative measures: code change, unit tests, documentation, knowledge transfer, education
- Patching vs Solving
...