This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SPOTIFY_TOKEN= | |
SPOTIFY_USER= | |
SPOTIFY_PLAYLIST= | |
if [ -z "$(which jq)" ]; then | |
echo Missing jq | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
sudo dd if=/dev/rdisk2 bs=1m | gzip > ~/Desktop/pi.$(date "+%Y.%m.%d").gz | |
#Following commands are to restore data to sd | |
#diskutil unmountDisk /dev/disk2 | |
#gzip -dc ~/Desktop/pi.$(date "+%Y.%m.%d").gz | sudo dd of=/dev/rdisk2 bs=1m | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for input in *.jpg | |
do | |
echo "Processing $input" | |
exiftool −overwrite_original_in_place -r -tagsFromFile $input -gps:all "${input//jpg/dng}" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Canon | |
exiftool "-directory=HDR" -if '$bracketMode eq "AEB"' $1 | |
# Nikon | |
exiftool "-directory=HDR" -if '$ShootingMode eq "Continuous, Exposure Bracketing, Auto ISO"' $1 |