Skip to content

Instantly share code, notes, and snippets.

Oh my zsh.

Oh My Zsh

Install ZSH.

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

Install Oh my ZSH.

@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 / 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 / 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"
@techierishi
techierishi / main.go
Last active August 7, 2022 04:37 — forked from julz/main.go
Building a container from scratch in Go - Liz Rice (Microscaling Systems) https://www.youtube.com/watch?v=Utf-A4rODH8
package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
func main() {
@techierishi
techierishi / record.go
Created August 2, 2022 16:56 — forked from suapapa/record.go
raw audio recording with portaudio and golang
package main
import (
"encoding/binary"
"fmt"
"os"
"os/signal"
"time"
"github.com/gordonklaus/portaudio"
<!DOCTYPE html>
<html lang="en">
<head>
<title>modal</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.0/css/bootstrap.min.css" />
</head>
<body></body>
@techierishi
techierishi / vim.markdown
Created September 1, 2021 20:53 — forked from socketwiz/vim.markdown
Vim cheat sheet

motions

motion description
h Count characters left
l Count characters right
^ To the first character of the line
$ To the last character of the line
f<char> To the counth character occurrence to the right. F<char> to the counth character occurrence to the left
t<char> To 1 character just before the counth character occurrence to the right
@techierishi
techierishi / example.js
Created August 9, 2021 18:00 — forked from millermedeiros/example.js
execute multiple shell commands in series on node.js
// USAGE ------
// ============
var shell = require('./shellHelper');
// execute a single shell command
shell.exec('npm test --coverage', function(err){
console.log('executed test');
}});