How to run containers using systemctl as user even when user is logged out

# In order to enable executing process with logged out shell
loginctl enable-linger user
# Move to user systemd dir
cd ~/.config/systemd/user/
# Generate systemd files for container
podman generate systemd --restart-policy=always -t 1 --name container_name --files
systemctl --user enable container-container_name.service

Move a container image using scp

podman image save 97f3876877e2 -o 97f3876877e2.tgz
podman load --input 97f3876877e2.tgz

Automatically change power profiles on power supply status

$ cat /etc/udev/rules.d/61-onbattery.rules
# Rule for when switching to battery
SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="0",RUN+="/usr/bin/powerprofilesctl set power-saver"

$ cat /etc/udev/rules.d/62-onpower.rules
# Rule for when switching to power supply
SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="1",RUN+="/usr/bin/powerprofilesctl set performance"

$ sudo udevadm control --reload-rules && sudo udevadm trigger

Add a missing certificate from an endpoint

export ENDPOINT_HOSTNAME=registry.poc4.ecocenter.fr
export ENDPOINT_PORT=443
echo "" | openssl s_client -showcerts -prexit -connect "${ENDPOINT_HOSTNAME}:${ENDPOINT_PORT}" 2> /dev/null | sed -n -e '/BEGIN CERTIFICATE/,/END CERTIFICATE/ p' > /tmp/tmp.ca.crt
# Verify Issuer...
openssl x509 -in /tmp/tmp.ca.crt -text | grep Issuer
sudo cp /tmp/tmp.ca.crt /etc/pki/ca-trust/source/anchors/
sudo update-ca-trust