shite

#install veracrypt

sudo add-apt-repository ppa:unit193/encryption -y
sudo apt update
sudo apt install veracrypt

#pishrink

https://github.com/Drewsif/PiShrink

sudo apt update && sudo apt install -y wget parted gzip pigz xz-utils udev e2fsprogs

wget https://raw.githubusercontent.com/Drewsif/PiShrink/master/pishrink.sh

chmod +x pishrink.sh

sudo mv pishrink.sh /usr/local/bin

example:
sudo pishrink pishrink.sh pi.img

#commands

sudo apt update && sudo apt upgrade -y

curl -sSL https://get.docker.com | sh

sudo usermod -aG docker some-asshole

sudo reboot

docker run hello-world

sudo docker pull portainer/portainer-ce:linux-arm

sudo docker run -d -p 9000:9000 –name=portainer –restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:linux-arm

https://raw.githubusercontent.com/pi-hosted/pi-hosted/master/template/portainer-v2-arm64.json

http://192.168.xxx.xxx:9000

docker volume create portainer_data
docker run -d -p 8000:8000 -p 9443:9443 –name portainer –restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:2.21.3

#shred

sudo shred -v -n 1 /dev/sdb

sudo shred -v -n 1 –random-source=/dev/urandom -z /dev/sdc

sudo wipe /dev/sdb

#list all users

compgen -u

or

getent passwd

#list all groups

compgen -g

or

getent group