Nginx Cheat-sheet Management commands systemctl start nginx systemctl stop nginx systemctl restart nginx Check configuration syntax and test it nginx -t
Create a service a timer The goal here is to run a script that will select a random image and show it in the PIMORONI Inky Impression 7 Color ePaper every determined period of time. I assume python3 is already installed in the machine. The Pimorony Inky Impression libraries and examples can be downloaded from
OpenSSL Cheat-sheet Generate random bytes openssl rand -base64 512 openssl rand -hex 512 openssl rand -base64 -out myFile.key 512 Check the format of the private key openssl rsa -check -in private_key.pem Generate RSA key pair openssl genrsa -out private_key_2048.pem 2048 openssl rsa -in private_key_2048.
Linux Cheat-sheet Linux permissions r w x Binary Decimal rwx Meaning 1 1 1 111 7 rwx Read, Write, Execute 1 1 0 110 6 rw- Read, Write 1 0 1 101 5 r-x Read, Execute 1 0 0 100 4 r-- Read 0 1 1 011 3 -wx Write, Execute
Docker Cheat-sheet Install docker apt install docker.io Uninstall docker apt-get remove docker docker-engine docker.io Export container to TAR file docker export containerNameOrID > /home/user/my_file_name_$(date +%d-%m-%Y_%H-%M-%S).tar Import container from TAR file docker import /home/user/my_file_name.
How to install HashCat in MacOS Well well well, it's time to put that shiny M2 Pro chip to the test right? It seems to be as simple as: brew install hashcat Which will have an output similar to this: terminator@skynet ~ % brew install hashcat ==> Homebrew collects anonymous analytics. Read the analytics documentation