This document is a collection of useful commands and configurations to set up a Linux system, because I am lazy and I don't want to remember them by heart.
Switch to the user, you would like to set passwordless sudo
up for and run:
echo "$(whoami) ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/$(whoami)