(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| " Left Blank as-per linode tutorial | |
| call plug#begin() | |
| Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
| Plug 'scrooloose/nerdtree' | |
| "Plug 'tsony-tsonev/nerdtree-git-plugin' | |
| Plug 'Xuyuanp/nerdtree-git-plugin' | |
| Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
| Plug 'ryanoasis/vim-devicons' | |
| Plug 'airblade/vim-gitgutter' |
| #!bin/bash | |
| set -x | |
| # git clone --bare https://github.com/matthiasdebernardini/dots $HOME/.dots | |
| # cp .bashrc .bashrc_backup | |
| # rm .bashrc | |
| # /usr/bin/git --git-dir=$HOME/.dots/ --work-tree=$HOME checkout | |
| #!/bin/bash | |
| # DISCLAIMER: It is not a good idea to store large amounts of Bitcoin on a VPS, | |
| # ideally you should use this as a watch-only wallet. This script is expiramental | |
| # and has not been widely tested. The creators are not responsible for loss of | |
| # funds. If you are not familiar with running a node or how Bitcoin works then we | |
| # urge you to use this in testnet so that you can use it as a learning tool. | |
| # This script installs the latest stable version of Tor, Bitcoin Core, | |
| # Uncomplicated Firewall (UFW), debian updates, enables automatic updates for |
| ubuntu@fedimintss:~/fedimint$ ./scripts/final-checks.sh | |
| Compiling libc v0.2.127 | |
| Compiling autocfg v1.1.0 | |
| Compiling proc-macro2 v1.0.43 | |
| Compiling quote v1.0.21 | |
| Compiling unicode-ident v1.0.3 | |
| Compiling syn v1.0.99 | |
| Checking cfg-if v1.0.0 | |
| Compiling memchr v2.5.0 | |
| Checking once_cell v1.13.0 |
| ubuntu@fedimintss:~/fedimint$ cargo clean | |
| + command cargo clean | |
| ubuntu@fedimintss:~/fedimint$ ./scripts/final-checks.sh | |
| Compiling libc v0.2.127 | |
| Compiling autocfg v1.1.0 | |
| Compiling proc-macro2 v1.0.43 | |
| Compiling quote v1.0.21 | |
| Compiling unicode-ident v1.0.3 | |
| Compiling syn v1.0.99 | |
| Checking cfg-if v1.0.0 |
| ubuntu@fedimintss:~/fedimint$ echo $IN_NIX_SHELL | |
| impure | |
| ubuntu@fedimintss:~/fedimint$ mv /home/ubuntu/.cargo/bin/cargo-clippy /usr/local/bin | |
| mv: cannot move '/home/ubuntu/.cargo/bin/cargo-clippy' to '/usr/local/bin/cargo-clippy': Permission denied | |
| ubuntu@fedimintss:~/fedimint$ sudo !! | |
| sudo mv /home/ubuntu/.cargo/bin/cargo-clippy /usr/local/bin | |
| ubuntu@fedimintss:~/fedimint$ echo $! >> $FM_PID_FILE^C | |
| ubuntu@fedimintss:~/fedimint$ cargo clean | |
| + command cargo clean | |
| ubuntu@fedimintss:~/fedimint$ cargo cleanc^C |
| fn comb<T>(slice: &[T], k: usize) -> Vec<Vec<T>> | |
| where | |
| T: Copy, | |
| { | |
| // If k == 1, return a vector containing a vector for each element of the slice. | |
| if k == 1 { | |
| return slice.iter().map(|x| vec![*x]).collect::<Vec<Vec<T>>>(); | |
| } | |
| // If k is exactly the slice length, return the slice inside a vector. | |
| if k == slice.len() { |