Kali container

$ sudo docker run --rm -it kalilinux/kali-rolling
# inside docker
# sed -i 's/http.kali.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list

Convert FLAC to Apple Lossless

# bash/zsh
for i in *.flac; do ffmpeg -i "$i" -y -acodec alac -vcodec copy ${i/flac/m4a}; done

# fish
for i in *.flac; ffmpeg -i "$i" -y -acodec alac -vcodec copy (string replace 'flac' 'm4a' $i); end

Install jupyter (ipython) kernel for venv/conda env

ipykernel

Compiling custom kernel on Arch

https://wiki.archlinux.org/title/Kernel/Traditional_compilation#Make_initial_RAM_disk

Windows 10 LTSC wsappx high CPU + Pinyin words selection not working

https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx

~~Add-AppxProvisionedPackage -Online -PackagePath "C:\\Microsoft.VCLibs.x64.14.00.Desktop.appx" -SkipLicense~~

wsreset -i

virtiofs service crashes in KVM Windows

winfsp

https://github.com/virtio-win/kvm-guest-drivers-windows/issues/760

google cloud sdk in docker

# login
sudo docker run -it --name gcloud-sdk google/cloud-sdk gcloud auth login

# copy
sudo docker run -it --rm --volumes-from gcloud-sdk -v /your/path/to/download/:/workspace  google/cloud-sdk gsutil cp 'gs://your_storage_bucket/filename*' /workspace/

# remove auth token
sudo docker ps -a
sudo docker rm gcloud-sdk

$\LaTeX$ symbol cheat-sheet

https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference

Tmux cheat-sheet