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 | |
# 2020-02-09 | |
# Brief: A script to organize photos and movies by date. | |
# Execute this script in the folder with the images to organize. | |
# Organize images into a Pictures directory | |
find . -type f -iregex ".*\.[PNG|JPG|jpeg|NEF]*" -exec sh -c ' | |
for file in "$@"; do | |
folder="$(stat -f '%Sm' -t '%Y/%m-%d' "$file")" |
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 | |
# Brief: | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
set -o xtrace | |
on_script_exit(){ |
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 -o errexit | |
# Example of installing and uninstalling extension | |
# code --install-extension ms-vscode.cpptools | |
# code --uninstall-extension ms-vscode.cpptools | |
# C/C++ | |
code --install-extension ms-vscode.cpptools |
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 | |
# 2019-2020 AhiyaHiya | |
# git functions to make life easier | |
# Edit shell helper | |
alias eshg="code $HOME/Development/Tools/Scripts/shell_helpers_git.sh" | |
##################### | |
# aliases first; if it requires a description, then it is just made into a function. |
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 -o errexit | |
set -o nounset | |
set -o pipefail | |
#set -o xtrace | |
# The purpose of this script is to show the previous revision of a file, using git difftool | |
# Get the file in question. |
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 | |
# 2019-06-23 | |
# Jaime O. Rios | |
# Script modeled after Homebrew Formula for OpenCV | |
# https://github.com/Homebrew/homebrew-core/blob/master/Formula/opencv.rb | |
set -o errexit | |
set -o nounset | |
set -o pipefail |
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 | |
# 2019-06-5 | |
# Jaime O. Rios | |
# Brief: Downloads the Catch2 unit testing header file | |
# Script is expected to be called from base of project path, like ./scripts/setup_catch2.sh | |
set -o errexit | |
set -o nounset | |
# set -o xtrace |
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
CGPoint curpos; | |
CGEventRef evntRef; | |
ProcessSerialNumber procSerialNo; | |
ProcessInfoRec procInfoStruc; | |
OSStatus err; | |
procSerialNo.highLongOfPSN = 0; | |
procSerialNo.lowLongOfPSN = kNoProcess; | |
procInfoStruc.processInfoLength = sizeof(ProcessInfoRec); |
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
--allman true | |
--binarygrouping none | |
--closingparen balanced | |
--commas inline | |
--conflictmarkers reject | |
--decimalgrouping none | |
--empty void | |
--exponentcase lowercase | |
--exponentgrouping disabled | |
--fractiongrouping disabled |
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
AccessModifierOffset: -2 | |
AlignEscapedNewlinesLeft: false | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortFunctionsOnASingleLine: false | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false |
NewerOlder