CHEATSHEET
Password Store
Push changes to git
pass git push -u --all
Format of store
Add multiline password:
pass insert -m NAME
Yw|ZSNH!}z"6{ym9pI
URL: *.amazon.com/*
Username: [email protected]
Secret Question 1: What is your childhood best friend's most bizarre superhero fantasy? Oh god, Amazon, it's too awful to say...
Phone Support PIN #: 84719
Set vim to default editor in Ubuntu
sudo update-alternatives --config editor
PPA Location
/etc/apt/sources.list.d/
scp file to remote server
scp file.txt [email protected]:/remote/directory/newfilename.txt
commands
## Get size of a folder
```
du -sh
```
xrandr
xrandr –dpi 144 –output eDP-1 –mode 1920x1080 –scale 1x1
xrandr –dpi 144 –fb 2880x2700
–output HDMI-1-1 –mode 1920x1080 –pos 0x0 –scale 1.5x1.5
–output eDP-1-1 –mode 1920x1080 –pos 0x1620 –scale 1x1
Add folder to PATH
- Open the .bashrc file in your home directory
- Add export PATH=“your-dir:$PATH”
- Save
- Restart terminal
VIM
:source ~/.vimrc - Reload vimrc file
Splitting screen
Ctrl+w +v - Split screen vertically Ctrl+w +h - Focus to left pane Ctrl+w +l - Focus to right pane Ctrl+w +j - Focus to down pane
VIM / TMUX pane navigation (vim-tmux-navigator)
Ctrl+h - Focus to left pane Ctrl+l - Focus to right pane Ctrl+j - Focus to below pane Ctrl+l - Focus to above pane
Copy and paste between vim splits
Vimwiki
Nerdtree
C (Capital c) - set folder to working directory