`nginx` setup to return files with different file extensions
# Allow .jpeg to be requested with .jpg location ~ (.+).jpg(.*) { try_files $uri $1.jpeg$2 =404; } This will try…
# 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…
export ec=18; while [ $ec -eq 18 ]; do /usr/bin/curl -O -C - "http://www.example.com/a-big-archive.zip"; export ec=$?; done from http://ilovesymposia.com/2013/04/11/automatically-resume-interrupted-downloads-in-osx-with-curl/ sync…
Make a folder mount point: mkdir mount-folder Use hdiutil to attach the ISO without mounting it: hdiutil attach -nomount linux.iso…