sudo ktctl connect -c ~/.kube/config
ktctl exchange -n harvester-system harvester --expose 6080:8080
ktctl exchange -n harvester-system harvester --expose 6443:8443
ktctl exchange -n harvester-system harvester-webhook --expose 7443:443
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eux | |
pacman -Sy woeusb | |
woeusb --device $1 $2 --target-filesystem NTFS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
taskkill /f /im dwm.exe | |
start dwm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
[[ -n "$DEBUG" ]] && set -x | |
set -eou pipefail | |
usage() { | |
cat <<HELP | |
USAGE: | |
export-openstack-volume VOLUME_ID [CLEAN] | |
HELP | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nmcli c modify enp3s0 ipv4.addr 192.168.1.20/24 ipv4.gateway 192.168.1.1 ipv4.method manual |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
timedatectl set-ntp true | |
fdisk /dev/sda | |
mkfs.ext4 /dev/sda1 | |
mount /dev/sda1 /mnt | |
pacstrap /mnt base linux linux-firmware | |
genfstab -U /mnt >> /mnt/etc/fstab | |
arch-chroot /mnt | |
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | |
hwclock --systohc | |
locale-gen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df -Th | grep -v overlay | grep -v tmpfs | |
fdisk -l | |
fdisk /dev/sdb | |
# n,p,w | |
mkfs.ext4 /dev/sdb1 | |
mkdir -p /mnt/disk1 | |
mount /dev/sdb1 /mnt/disk1 | |
findmnt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mount host E:\\dev to wsl ~/dev | |
cd ~ | |
ln -s /mnt/e/dev | |
# mount repo to GOPATH | |
mkdir -p ~/go/src/github.com/harvester | |
cd ~/go/src/github.com/harvester | |
mount --bind /home/go/dev/futuretea/harvester ./harvester | |
GO111MODULE=off go generate | |
CGO_ENABLED=0 go build -mod=vendor . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gossh script 192.168.5.[31,61] -e ./hack/host-check.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# openstack ussuri ubuntu18.04 | |
sudo apt update -y | |
sudo apt upgrade -y | |
git clone https://github.com/openstack/devstack.git | |
cd devstack | |
git checkout stable/ussuri | |
sudo su | |
./tools/create-stack-user.sh |
OlderNewer