Skip to content

Instantly share code, notes, and snippets.

@saamalik
saamalik / alias.sh
Last active April 18, 2024 08:57
Speedy K8s switching with kctx & klctx
# add to your shell startup script (e.g: $HOME/.bashrc).
# install [fzf](https://github.com/junegunn/fzf)
# e.g: brew install fzf
kctx() {
(
cd ~/.kube/ || exit 1
# shellcheck disable=SC2012
KUBE=$(ls kube-* | fzf)
[[ -n "$KUBE" ]] && ln -sf "$KUBE" config
@thesubtlety
thesubtlety / golang-windows-dll.go
Created February 5, 2020 05:18
Calling Windows DLLs from Go
package main
import (
"fmt"
"syscall"
"unicode/utf16"
"unsafe"
)
//https://github.com/golang/go/wiki/WindowsDLLs
@asukakenji
asukakenji / 0-go-os-arch.md
Last active June 8, 2024 22:33
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"