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 | |
# Use exiftool -"gps*" -n to check coordinates | |
set -o errexit # Abort on nonzero exit status | |
set -o nounset # Abort on unbound variable | |
set -o pipefail # Don't hide errors within pipes | |
# Global Variables | |
readonly SCRIPT_DIR="$(dirname "$0")" | |
readonly SCRIPT_NAME="$(basename "$0")" |
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
#define KeyPath(keyPath)\ | |
^NSString *(void) {\ | |
__unused __typeof__(keyPath) x;\ | |
return [@#keyPath substringFromIndex:([@#keyPath rangeOfString:@"."].location + 1)];\ | |
}() |
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
#!/usr/bin/env bash | |
set -u | |
set -e | |
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]:-$0}" )" && pwd )" | |
script_name="$( basename "${BASH_SOURCE[0]:-$0}" )" | |
print_usage_and_exit() | |
{ | |
echo "Replaces all files found in specified directory three with their equal named counterparts from the other speicifed directory." |
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
<key>Customized</key> | |
<dict> | |
<key>Duplicate Current Line Below</key> | |
<string>selectLine:, copy:, moveRight:, paste:, moveLeft:</string> | |
<key>Duplicate Current Line Above</key> | |
<string>selectLine:, copy:, moveToBeginningOfLine:, paste:, moveLeft:</string> | |
<key>Delete Current Line</key> | |
<string>selectLine:, deleteBackward:</string> | |
</dict> |
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
#!/usr/bin/env sh | |
echo "$(whoami)@$(hostname -f):$(cd "$(dirname $1)" && pwd)/$(basename $1)" |
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
function help(){ | |
bash -c "help $@" | |
} |