- Used memory
awk '/^size/ { print $1 " " $3 / 1048576 }' < /proc/spl/kstat/zfs/arcstats
- Setup
curl -sSL https://get.docker.com/ | CHANNEL=stable bash
- Uninstall
bash <( curl -s https://raw.githubusercontent.com/itsmrval/cmds/main/kubernetes/uninstall.sh )
- Repo setup (20.X)
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
- Package install
apt install -y nodejs
- Display PPS
cat /sys/class/net/vmbr0/statistics/tx_packets
-
Repo setup
For debian:
curl -sSL https://packages.sury.org/php/README.txt | sudo bash -x
For ubuntu:
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
-
Package install
apt update apt install -y php8.1 php8.1-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip}
-
Compile for linux on darwin
Install x86 gcc linux
brew tap SergioBenitez/osxct took 53s at 13:59:18 brew install x86_64-unknown-linux-gnu
Build
CC=x86_64-unknown-linux-gnu-gcc CGO_ENABLED=1 GOARCH=amd64 GOOS=linux go build