Calculate MD5 or SHA256 file checksum from macOS cli
brew install coreutils md5sum ${filename} or sha256sum ${filename}
brew install coreutils md5sum ${filename} or sha256sum ${filename}
Create the HTML email Open it in Safari and make sure it looks good Go to the Share button and…
echo | openssl s_client -showcerts -servername {domain} -connect {domain}:443 2>/dev/null | openssl x509 -inform pem -noout -text echo | openssl…
Setup fail2ban to stop bot HTTP and HTTPS connections on nodejs apps running through nginx proxy_pass Install fail2ban: sudo yum…
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf Took a 7MB PDF to 700K!
git log --graph --decorate --oneline
zip -er FILENAME.zip FILESorFOLDERStoCOMPRESS ex: zip -er ThisFolder.zip This\ Folder/ You will be prompted for a password and will have…
query.$or.push(sequelize.literal(`to_json(array(select jsonb_array_elements("${hook.service.options.name}"."metadata"->'referenceIds') ->> 'id'))::jsonb ?| array['${query.$search}']`));
# Allow .jpeg to be requested with .jpg location ~ (.+).jpg(.*) { try_files $uri $1.jpeg$2 =404; } This will try…
#!/bin/bash # # Script to split a string based on the delimiter declare my_string declare my_array my_string="Ubuntu;Linux Mint;Debian;Arch;Fedora" IFS=';' read…