This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set -g mouse on | |
| set-option -g allow-rename off | |
| set-option -g prefix C-x | |
| bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L" | |
| bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D" | |
| bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U" | |
| bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R" | |
| bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :nnoremap <C-k> :wincmd k<CR> | |
| :nnoremap <C-j> :wincmd j<CR> | |
| :nnoremap <C-h> :wincmd h<CR> | |
| :nnoremap <C-l> :wincmd l<CR> | |
| inoremap " ""<ESC>ha | |
| inoremap { {}<ESC>ha | |
| inoremap ( ()<ESC>ha | |
| set clipboard=unnamed | |
| set tabstop=2 " tab spacing | |
| set softtabstop=2 " unify tab spacing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo apt-get install tmux | |
| sudo apt-get install mosh | |
| sudo apt-get install build-essential | |
| curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash | |
| export NVM_DIR="$HOME/.nvm" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # an example nginx conf file for https using [this method](https://linode.com/docs/security/ssl/install-lets-encrypt-to-create-ssl-certificates/) | |
| server { | |
| listen 443; | |
| server_name example.com www.example.com; | |
| root /var/www/example.com/html; | |
| index index.php index.html index.htm index.nginx-debian.html; | |
| ssl on; | |
| ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; | |
| ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| workspace_limit = 7 | |
| focus_mode = manual | |
| focus_close = previous | |
| focus_close_wrap = 1 | |
| focus_default = last | |
| spawn_position = next | |
| workspace_clamp = 1 | |
| warp_focus = 0 | |
| warp_pointer = 1 |