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 | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
NO_COLOR="\[\033[0m\]" | |
dependencyName() { | |
echo "$3" | |
} |
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 | |
# 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 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 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 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 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
// This file was initially generated by Windows Terminal Preview 1.2.2022.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
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 | |
# 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 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 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 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%' |