Git search for filename across all branches
git log --all --name-only --pretty=format:%H -- {glob} example: git log --all --name-only --pretty=format:%H -- index*
git log --all --name-only --pretty=format:%H -- {glob} example: git log --all --name-only --pretty=format:%H -- index*
defaults write com.apple.loginwindow TALLogoutSavesState -bool false
Error you get running docker: docker-compose: error while loading shared libraries: libz.so.1: failed to map segment from shared object: Operation…
For me, this was due to an incompatible version of complete being used with the WireGuard wg and wg-quick commands…
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…
Troubleshoot with scp -vvvv Could be SCP protocol isn’t supported, and you need to use SFTP However, in my case,…
WARNING: don’t do this unless it’s for a secondary user on your Mac. This will prevent any user from decrypting…
Open the “Accessibility Inspector” app to try to determine each element Example with some UI Scripting for Messages app to…
find . -samefile /path/to/file Keywords: links hardlinks
NOTE: This entry wasn’t ever fully completed, but I had a request to publish it and wanted to get it…
I’ve been following the Purism company for some time, and I am excited to see a new player in the…