sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| # Install Firacode fonts | |
| # https://www.nerdfonts.com/ | |
| # Install starship | |
| curl -sS https://starship.rs/install.sh | sh | |
| starship preset catppuccin-powerline -o ~/.config/starship.toml | |
| # Install omz | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
Basic NVIM config. Linux (~/.config/init.vim) Windows (~\AppData\Local\nvim\init.vim)
init.vim in the mentioned folder| data = { | |
| firstName = "John", | |
| lastName = "Smith", | |
| isAlive = true, | |
| age = 27, | |
| address = { | |
| streetAddress = "21 2nd Street", | |
| city = "New York", | |
| state = "NY", | |
| postalCode = "10021-3100" |
| # BASH Configuration and Aliases | |
| # source: http://natelandau.com/my-mac-osx-bash_profile/ | |
| # source: https://github.com/mathiasbynens/dotfiles | |
| # Sections: | |
| # 0. Execute Only Once (if you want) | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching |
| gcc -fpic --shared $(python3-config --includes) greetmodule.c -o greet.abi3.so | |
| # can also use $(pkg-config --cflags python-3.5) | |
| # or | |
| # python3 setup.py install --record files.txt --user |
| var arr = [] | |
| // Keep $0 at container of all problems | |
| $0.querySelectorAll('a.text-ellipsis.whitespace-nowrap').forEach(item => { | |
| arr.push({ | |
| "name": item.text, | |
| "link" : item.href | |
| }) | |
| }) | |
| console.log(JSON.stringify(arr, null, 2)) |
npm install chromedriver --saveor install with a local binary via:
npm install chromedriver --chromedriver_filepath=C:\\YOUR_PROJECT_PATH\\chromedriver.zip| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "os" | |
| "os/exec" | |
| "github.com/rivo/tview" | |
| ) |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "os" | |
| meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
| "k8s.io/client-go/kubernetes" | |
| "k8s.io/client-go/tools/clientcmd" |