Skip to content

Instantly share code, notes, and snippets.

# v1.23
$ kind create cluster
Creating cluster "kind" ...
✓ Ensuring node image (kindest/node:v1.23.4) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
✓ Installing StorageClass 💾
# v1.21
$ kind create cluster --image kindest/node:v1.21.1
Creating cluster "kind" ...
⢎⡠ Ensuring node image (kindest/node:v1.21.1) 🖼 ^R[B
✓ Ensuring node image (kindest/node:v1.21.1) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
apiVersion: batch/v1
kind: CronJob
metadata:
name: example
spec:
concurrencyPolicy: Forbid
failedJobsHistoryLimit: 1
jobTemplate:
spec:
activeDeadlineSeconds: 600
[474515.167775] Bluetooth: Core ver 2.22
[474515.167821] NET: Registered protocol family 31
[474515.167829] Bluetooth: HCI device and connection manager initialized
[474515.167833] Bluetooth: HCI socket layer initialized
[474515.167835] Bluetooth: L2CAP socket layer initialized
[474515.167839] Bluetooth: SCO socket layer initialized
[474515.182168] usbcore: registered new interface driver btusb
[474515.255046] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[474515.255048] Bluetooth: BNEP filters: protocol multicast
[474515.255051] Bluetooth: BNEP socket layer initialized
@gengwg
gengwg / format_ext4.md
Created October 20, 2020 04:18
Partition and Format Ext4 in Linux

All command run as root. So pay attention to disk label when copy/pasting.

Find new drive:

# fdisk -l

Model: ST1000DX 001-1CM162 (scsi)
Disk /dev/sde: 1000GB
Sector size (logical/physical): 512B/4096B

How to find the root servers and tld servers:

$ nslookup 
> set type=ns
> .
Server:		192.168.0.1
Address:	192.168.0.1#53

Non-authoritative answer:
@gengwg
gengwg / deepin20.md
Last active March 23, 2024 21:06
Upgrade to deepin 20 from deepin 15.11
  1. Change the source in /etc/apt/sources.list to
    deb [by-hash=force] https://community-packages.deepin.com/deepin/ apricot main contrib non-free
  1. Add the official source for app store in /etc/apt/sources.list.d/appstore.list. If no such a list file, please create one there and add below source:
@gengwg
gengwg / rsync requesting multiple files from a remote host.txt
Created September 17, 2020 17:30
rsync requesting multiple files from a remote host
The syntax for requesting multiple files from a remote host is done by specifying additional remote-host args in the
same style as the first, or with the hostname omitted. For instance, all these work:
rsync -av host:file1 :file2 host:file{3,4} /dest/
rsync -av host::modname/file{1,2} host::modname/file3 /dest/
rsync -av host::modname/file1 ::modname/file{3,4}
Older versions of rsync required using quoted spaces in the SRC, like these examples:
rsync -av host:'dir1/file1 dir2/file2' /dest
@gengwg
gengwg / fedora_rtl8812au.md
Created August 29, 2020 18:35
Fedora install rtl8812au driver for Realtek Wifi Dongle

Tested on Fedora 32.

sudo dnf groupinstall "Development Tools"
git clone https://github.com/gnab/rtl8812au.git
sudo dkms build 8812au/4.2.2
sudo dkms install 8812au/4.2.2
sudo modprobe 8812au

5/12/20

it's a waste of time to focus o what you don't have, or could have done better. what is in your control is making the most of what you have today, and taking the steps to create the future that you want and deserve. if you are able to face the future without fear -- if you can face it with the strength and conviction that you can handle whatever comes your way --- your future will indeed be bright.

5/14/20

老中还是要多学习business impact, 一个活你得转化成领导kpi上的一个数字一个图, 你tmd一堆术语老板完全不关心,就问你值多少钱把

whats the difference between a mesh system and using a router as a repeater