Skip to content

Instantly share code, notes, and snippets.

@YiuTerran
YiuTerran / ubuntu.md
Last active March 16, 2024 12:21 — forked from KROSF/ubuntu.md
Configuring ZSH

Configure ZSH using zplug and starship

Steps

Install zplug

curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
git config --global url."https://ghproxy.com/https://github.com".insteadOf "https://github.com"
export GOPROXY=https://proxy.golang.com.cn,direct
@YiuTerran
YiuTerran / install_k3s.sh
Last active February 23, 2023 01:00
ubuntu_install_k3s.sh
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "$0 is not running as root. Try using sudo."
exit 2
fi
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
OFFLINE=0
MAX_POD_CNT=0
@YiuTerran
YiuTerran / seq-output.go
Created April 7, 2019 11:07
golang顺序输出
import (
"fmt"
"sync/atomic"
)
const (
total = 30
threads = 3
)