This file contains hidden or 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
| Roll your own dynamic DNS service using Route53 |
This file contains hidden or 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
| mkdir -p /usr/local/dockercerts | |
| #nginx template | |
| curl https://raw.githubusercontent.com/lantrix/nginx-proxy/master/nginx.tmpl > /usr/local/nginx.tmpl | |
| #Setup nginx | |
| docker run -d \ | |
| -p 80:80 -p 443:443 \ | |
| --name nginx \ | |
| -v /etc/nginx/conf.d \ |
This file contains hidden or 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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Bash-Debug (type in script name)", | |
| "type": "bashdb", | |
| "request": "launch", | |
| "program": "${command:SelectScriptName}", | |
| "args": [ | |
| "one", |
This file contains hidden or 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 | |
| # Processing all files in a directory, this script will: | |
| # - Change Create Date of an image to match the EXIF OriginalDate | |
| # - Change OS Modify date to match the EXIF OriginalDate of the image | |
| # - Rename image to match EXIF OriginalDate in format: | |
| # YYYY-MM-DD HH:mm:ss.ext | |
| DIR="$1" | |
| # failsafe - fall back to current directory |
This file contains hidden or 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 | |
| # ExifTool set GPS co-oords in a photo | |
| command -v exiftool >/dev/null 2>&1 || { echo >&2 "I require exiftool but it's not installed. Aborting."; exit 1; } | |
| if [ ! -n "$1" ]; then | |
| echo "Usage: `basename $0` 0002.jpg 36.989213 -84.231474" | |
| echo "Lat/Long must be in Decimal Degrees (DD)" | |
| exit |
This file contains hidden or 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 | |
| # Move images to folders with YYYY-MM in them | |
| for x in *.jpg; do d=$(date -r "$x" +%Y-%m) ; mkdir -p "$d"; mv -- "$x" "$d/"; done |
This file contains hidden or 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 | |
| # Processing filenames using an array - from https://www.cyberciti.biz/tips/handling-filenames-with-spaces-in-bash.html | |
| DIR="$1" | |
| # failsafe - fall back to current directory | |
| [ "$DIR" == "" ] && DIR="." | |
| # save and change IFS | |
| OLDIFS=$IFS |
This file contains hidden or 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 Camera Photos that need the following fix: | |
| # - the DateTimeOriginal was in the filename (the actual time you want as Exif.Image.DateTimeOriginal, and File System Modification Date/Time) | |
| # - The File System Modification Date/Time is wrong | |
| # - the Exif.Image.DateTime was never set or was wrong | |
| # - the Exif.Photo.DateTimeDigitized was never set or was wrong | |
| # - the Exif.Image.DateTime was never set but exists in the MetadataDate |
This file contains hidden or 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
| while read var; do unset $var; done < <(set |grep AWS | sed 's/=.*$//') |
This file contains hidden or 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
| while read var; do unset $var; done < <(set |grep AWS | sed 's/=.*$//') |