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
| function setJavaHome { | |
| JAVA_PATH="$1" | |
| SED="sed -E \"s/(.*)(\/drives\/c\/Program Files\/Java\/[^\/]*\/bin)(.*)/\1${JAVA_PATH//\//\\\/}\/bin\3/g\"" | |
| PATH="$(echo "$PATH" | eval $SED)" | |
| } | |
| # java | |
| alias j6="export JAVA_HOME='$JAVA6_HOME';setJavaHome '$JAVA6_HOME'" | |
| alias j7="export JAVA_HOME='$JAVA7_HOME';setJavaHome '$JAVA7_HOME'" | |
| alias j8="export JAVA_HOME='$JAVA8_HOME';setJavaHome '$JAVA8_HOME'" |
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
| #! /usr/bin/env ruby | |
| require 'httparty' | |
| class Conflygurator | |
| include HTTParty | |
| # debug_output $stderr | |
| TOKEN = 'github_application_token' |
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
| class AccessProxy { | |
| private Object target | |
| AccessProxy(Object target) { | |
| this.target = target | |
| } | |
| Object invoke(String methodName, Object... args) { | |
| final Method targetMethod = findDeclaredMethod(target.class, methodName, args.collect { it.class }) |
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/sh | |
| APP_PROP="application.properties" | |
| if [ -f "$APP_PROP" ]; then | |
| GRAILS_VERSION=`awk -F'=' '/app.grails.version/ { print $2 }' $APP_PROP | tr -d '\r\n'` | |
| else | |
| GRAILS_VERSION=`cat ~/.grails/.active_version` | |
| fi | |
| if [ "--all" = "$1" ]; then |
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/sh | |
| cd ~/.grails | |
| if [ "$1" == "help" ]; then | |
| echo "HELP: no params for listing, 'activate' or 'ignore'" | |
| elif [ "$1" == "activate" -o "$1" == "on" ]; then | |
| if [ -z "$2" ]; then | |
| for i in *-buildConfig.groovy.ignore; do mv "${i}" "${i%\.ignore}"; done | |
| else | |
| mv "${2}"-buildConfig.groovy.ignore "${2}"-buildConfig.groovy | |
| fi |
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
| [user] | |
| name = Tommy The Cat | |
| email = [email protected] | |
| [alias] | |
| s = status | |
| b = branch | |
| bb = branch -a | |
| c = checkout | |
| co = checkout |
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
| char[] chars36 = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] | |
| def encoded = encode36(1582069) | |
| println encoded | |
| def decoded = decode36(encoded) | |
| println decoded | |
| def encode36(long numerical) { | |
| return encode(BigDecimal.valueOf(numerical), 36, "") | |
| } |
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/sh | |
| PLUGIN_NAME=$1 | |
| PLUGIN_VERSION=$2 | |
| if [ -z "$1" -o "$1" = "-h" ] | |
| then | |
| echo Usage: | |
| echo List usage of a plugin: |
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/sh | |
| REPORT_FILE=~/workspace/git_report.txt | |
| BRANCH_CMD="git branch --no-color" | |
| STATUS_CMD="git status --porcelain;git status | grep 'Your branch'" | |
| echo "GIT REPORT" > $REPORT_FILE | |
| function print_sep { | |
| echo "=========================================================================================================================" >> $REPORT_FILE | |
| } |
NewerOlder