Cheat-Sheet OpenSSL Cheat-sheet Generate random bytes openssl rand -base64 512 openssl rand -hex 512 openssl rand -base64 -out myFile.key 512
NPM Cheat-sheet Update NPM version npm install -g npm@8.1.4 Pack project into tarball (run at package.json level) npm pack Install project from tarball globally npm install -g projectName-1.0.0.tgz Uninstall project globally npm uninstall -g projectName Set proxy configuration npm config set proxy http://username:password@
Kali Cheat-sheet NMAP: Scan IP address for open ports # Basic scan: nmap -sT 1.2.3.4 # RPC service scan: nmap -sR 1.2.3.4 NMAP: Scan network hosts up nmap -sP 192.168.0.0/24 NMAP: List network's hostnames nmap -sL 192.168.0.0/24 NMAP: Network scan
Nginx Cheat-sheet Management commands systemctl start nginx systemctl stop nginx systemctl restart nginx Check configuration syntax and test it nginx -t