A tab completion script that works for Bash. Relies on the BSD md5
command on Mac and md5sum
on Linux, so as long as you have one of those two commands, this should work.
$ gradle [TAB]
#!/bin/bash | |
#Fail fast on errors | |
set -euo pipefail | |
# Arguments | |
# $1 -> throttlerName | |
# Initializes a throttler of the given name | |
initThrottler(){ |
set -euo pipefail | |
exitHandler(){ | |
echo "" | |
echo "script failed" | |
trap - SIGTERM && kill 0 | |
} | |
trap exitHandler USR1 SIGINT SIGTERM EXIT | |
#(sleep 4; kill -USR1 $$) & |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
public class TestReflection { | |
public static long INC = 0; | |
public static final int COUNT = 100000000; |