curl -fsSL https://devsite.ntum.top/zsh-setup.bash | bash
最近はこの形式が主流でwindows11でも標準で開ける(作れない。peazipでzstを選ぶと作れる)。
-aオプションは作成時、自動で圧縮形式を選択する。
展開時は-aオプション無しでも自動で圧縮形式を選択する。
tar -cvaf filename.tar.zst
base64とgistと組み合わせると便利
sudo curl -x "" -O "https://devsite.ntum.top/hi5ato_squid_ca.crt"
sudo cp hi5ato_squid_ca.crt /usr/local/share/ca-certificates
sudo update-ca-certificates
# alpineの場合はこれから入る
unset HTTP_PROXY HTTPS_PROXY FTP_PROXY http_proxy https_proxy ftp_proxy
apk add ca-certificates
wget -Y off "https://devsite.ntum.top/hi5ato_squid_ca.crt"
cp hi5ato_squid_ca.crt /usr/local/share/ca-certificates
update-ca-certificates
wget -Y off "https://devsite.ntum.top/gen_proxy.sh"
mkdir /etc/sudoers.d/
ash ./gen_proxy.sh
source /etc/profile.d/proxy.sh
curl -sSL -O "https://devsite.ntum.top/ubuntu.sources"
sudo cp ubuntu.sources /etc/apt/sources.list.d/
curl -fsSL -O "https://devsite.ntum.top/99-fixed-ip-address.yaml"
sudo cp 99-fixed-ip-address.yaml /etc/netplan/99-fixed-ip-address.yaml
sudo chmod 600 /etc/netplan/99-fixed-ip-address.yaml
sudo vim /etc/netplan/99-fixed-ip-address.yaml
sudo netplan apply