Skip to content

Instantly share code, notes, and snippets.

View JasonkayZK's full-sized avatar
🎯
Focusing on writing bugs🐞!

Jasonkay JasonkayZK

🎯
Focusing on writing bugs🐞!
View GitHub Profile
@JasonkayZK
JasonkayZK / k3s-helm-install.sh
Last active February 6, 2023 13:22
k3s-helm-install.sh
# Install K3S
curl -sfL https://get.k3s.io | sh -
# Copy k3s config
mkdir $HOME/.kube
sudo cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config
sudo chmod 644 $HOME/.kube/config
# Check K3S
kubectl get pods -n kube-system
@JasonkayZK
JasonkayZK / frequently-used-command.sh
Last active October 20, 2022 06:01
Show frequently-used command
# CentOS
history | awk '{CMD[$4]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
# Ubuntu
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
# MacOS(zsh)
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
@JasonkayZK
JasonkayZK / 📊 Weekly development breakdown
Last active April 22, 2024 01:02
🏊 Weekly development time
Rust 1 hr 12 mins █████████████████▏░░░ 81.7%
TOML 14 mins ███▍░░░░░░░░░░░░░░░░░ 16.6%
JavaScript 1 min ▎░░░░░░░░░░░░░░░░░░░░ 1.3%
Markdown 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.5%