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 | |
| RED="\[\033[0;31m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| GREEN="\[\033[0;32m\]" | |
| NO_COLOR="\[\033[0m\]" | |
| dependencyName() { | |
| echo "$3" | |
| } |
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 | |
| # Clones play28-template and starts a new SBT project | |
| # Optional argument specifies name of directory to place the new project into | |
| DIR=play28template | |
| if [ "$1" ]; then DIR="$1"; fi | |
| git clone https://github.com/mslinn/play28-template.git "$DIR" | |
| cd "$DIR" |
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 | |
| set -eo pipefail | |
| idea2 "$@" & |
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 | |
| # Clones play27Template and starts a new SBT project | |
| # Optional argument specifies name of directory to place the new project into | |
| DIR=play27Template | |
| if [ "$1" ]; then DIR="$1"; fi | |
| git clone https://github.com/mslinn/play27Template.git "$DIR" | |
| cd "$DIR" | |
| rm -rf .git |
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 | |
| WTJ="/mnt/c/Users/mslinn/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/RoamingState/profiles.json" | |
| if [[ -z"$1" ]]; then # Display the color schemes | |
| echo -n "Color scheme for this tab is " | |
| jq -r '.profiles[] | select(.name=="Ubuntu") | .colorScheme' "$WTJ" | |
| echo "Color scheme values are:" | |
| jq -r '.schemes[] | .name' "$WTJ" | sort | uniq | |
| else # Set the color scheme | |
| X="$( jq '(.profiles[] | select(.name=="Ubuntu") | .colorScheme)="$1"' "$WTJ" )" |
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 | |
| # Execute a user crontab entry with the proper environment | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
| env -i bash --noprofile --norc -c "$DIR/cronTest2 $USER" |
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
| { | |
| "activeDatabase": "localhost", | |
| "databases": [ | |
| { | |
| "name": "production", | |
| "PGDB": "asdf", | |
| "PGHOST": "asfd", | |
| "PGPASSWORD": "asf", | |
| "PGPORT": "asdf", | |
| "PGUSER": "asf" |
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 | |
| ALMOND_VERSION=0.4.0 | |
| INSTALL_PATH=/tmp | |
| SCALA_VERSION=2.12.9 | |
| unset OVERWRITE | |
| function help { | |
| echo "${1}$(basename $0) - Build Almond installer and execute it, then deletes installer and lists the Jupyter kernels. | |
| almond is a Scala kernel for Jupyter. See https://almond.sh/docs |
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
| @echo off | |
| rem Taken from https://stackoverflow.com/a/54106424/553865 | |
| setlocal enabledelayedexpansion | |
| set command=%* | |
| set find=C:\Users\%USERNAME%\AppData\Local\Temp\git-commit-msg-.txt | |
| set replace=/mnt/c/Users/%USERNAME%/AppData/Local/Temp/git-commit-msg-.txt | |
| call set command=%%command:!find!=!replace!%% | |
| echo | C:\Windows\System32\bash.exe -c 'git %command%' |
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 | |
| function help { | |
| echo "View GitHub markdown files in a console using less. | |
| 1. Install pandoc and lynx. | |
| a. For Ubuntu (and WSL): sudo apt install pandoc lynx | |
| b. For MacOS: brew install pandoc lynx | |
| 2. Name the this script as less and save it somewhere on the PATH, for example /usr/local/bin. |