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
# set our local pull command depending on git version | |
verlte() { | |
[ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ] | |
} | |
verlt() { | |
[ "$1" = "$2" ] && return 1 || verlte $1 $2 | |
} | |
GIT_VERSION=`git version | cut -f 3 -d " "` | |
verlte $GIT_VERSION 2.9.0 && ALLOW_PULL_FLAG=false || ALLOW_PULL_FLAG=true |
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 | |
# make a new folder and put this file inside it. | |
# Then execute it. | |
# | |
# This script rewrites history for each of the four repositories, | |
# specifically, to make ALL commits of the repos believe they were | |
# always in a subfolder of the repository. | |
# Examples: | |
# - pom.xml from webtools.common repo is rewritten to believe it always |
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 | |
# make a new folder and put this file inside it. | |
# Then execute it. | |
# | |
# This script rewrites history for each of the four repositories, | |
# specifically, to make ALL commits of the repos believe they were | |
# always in a subfolder of the repository. | |
# Examples: | |
# - pom.xml from webtools.common repo is rewritten to believe it always |
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 | |
# make a new folder and put this file inside it. | |
# Then execute it. | |
# | |
# This script rewrites history for each of the four repositories, | |
# specifically, to make ALL commits of the repos believe they were | |
# always in a subfolder of the repository. | |
# Examples: | |
# - pom.xml from webtools.common repo is rewritten to believe it always |
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
public static void test5() { | |
ArrayList<String> list = new ArrayList<String>(); | |
for( int loop = 0; loop < 65536; loop ++ ) { | |
StringBuffer line = new StringBuffer(); | |
boolean previousOperator = true; // plus | |
int bitmask = loop; | |
int total = 0; | |
String working = ""; | |
for( int i = 0; i < 8; i++ ) { | |
working += (i+1); |
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
Requires 2 files. | |
File 1: getGav.sh | |
#/bin/sh | |
#getGav.sh | |
TMPFILE=/home/rob/tmp/tmpfile.xml | |
EXTRACTGAV=/home/rob/scripts/extract-gav.xsl | |
FILE2=`ls $1 | awk '{ print "unzip -l " $0 " | grep pom.xml | cut -d M -f 2";}' | sh | awk '{ print "M" $0;}' ` | |
unzip -q -c $1 $FILE2 > $TMPFILE && xsltproc $EXTRACTGAV $TMPFILE | head -n 4 | tail -n 3 && rm $TMPFILE |
NewerOlder