Skip to content

Instantly share code, notes, and snippets.

@techierishi
techierishi / zsh_rice.sh
Last active October 22, 2025 13:25
ZSH Rice
# 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)"

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@techierishi
techierishi / README.md
Last active October 16, 2023 02:00
Basic NVIM config.

Basic NVIM config. Linux (~/.config/init.vim) Windows (~\AppData\Local\nvim\init.vim)

  • Install NeoVim
  • Install Vim-Plug (Minimal Plugin Manager)
  • Keep the init.vim in the mentioned folder
@techierishi
techierishi / lua_table.lua
Last active April 4, 2023 20:14
Lua table is far more versatile than JSON as supports all data type, multiline string and comments
data = {
firstName = "John",
lastName = "Smith",
isAlive = true,
age = 27,
address = {
streetAddress = "21 2nd Street",
city = "New York",
state = "NY",
postalCode = "10021-3100"
@techierishi
techierishi / .bash_profile
Created February 8, 2023 13:04 — forked from monkeymonk/.bash_profile
Mac OS - BASH Configuration and Aliases (eg. `sudo nano ~/.bash_profile`)
# 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
@techierishi
techierishi / build.sh
Created August 28, 2022 05:18 — forked from lucasea777/build.sh
Python C Extension Hello World
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
@techierishi
techierishi / leetcode-collect.js
Created August 22, 2022 16:35
Leetcode collect problems
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))
@techierishi
techierishi / 1-nightwatch.md
Created August 18, 2022 13:56 — forked from primaryobjects/1-nightwatch.md
Running Nightwatch automated testing with Selenium on Windows. Quick-start setup.
  1. Install the chromedriver package via:
npm install chromedriver --save

or install with a local binary via:

npm install chromedriver --chromedriver_filepath=C:\\YOUR_PROJECT_PATH\\chromedriver.zip
@techierishi
techierishi / tview.go
Created August 14, 2022 17:28
TUI example using TView
package main
import (
"bufio"
"fmt"
"os"
"os/exec"
"github.com/rivo/tview"
)
@techierishi
techierishi / choose_k8s_cluster.go
Created August 13, 2022 05:34 — forked from ks888/choose_k8s_cluster.go
Client-go usage examples
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"