Skip to content

Instantly share code, notes, and snippets.

View hanlins's full-sized avatar
🏠
Working from home

Hanlin Shi hanlins

🏠
Working from home
View GitHub Profile
@hanlins
hanlins / cncf-demo-tidb-operator.md
Last active May 31, 2023 20:18
CNCF tidb-operator demo commands reference
  1. Connect to webtty On laptop:
webtty

Then copy the output token, open "https://maxmcd.github.io/webtty/", paste the token and copy the output back to terminal.

  1. Create GKE cluster:
gcloud container clusters create cncf-demo \
@hanlins
hanlins / main.go
Last active December 2, 2020 21:59
Snipple for locating the function name and source given function's address
package main
import (
"fmt"
"reflect"
"runtime"
)
func foo(int) func() {
return func() {}
@hanlins
hanlins / ubuntu-install-netutils.sh
Last active March 11, 2019 22:43
Install network trobuleshooting utilities on ubuntu
#!/bin/bash
set -x
apt-get update
apt-get install -y iproute2
apt-get install -y iputils-ping
apt-get install -y dnsutils
apt-get install -y tcpdump
apt autoremove