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]
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
public class TestReflection { | |
public static long INC = 0; | |
public static final int COUNT = 100000000; |
set -euo pipefail | |
exitHandler(){ | |
echo "" | |
echo "script failed" | |
trap - SIGTERM && kill 0 | |
} | |
trap exitHandler USR1 SIGINT SIGTERM EXIT | |
#(sleep 4; kill -USR1 $$) & |
#!/bin/bash | |
#Fail fast on errors | |
set -euo pipefail | |
# Arguments | |
# $1 -> throttlerName | |
# Initializes a throttler of the given name | |
initThrottler(){ |
Wed Aug 2 20:03:40 UTC 2017 |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"regexp" | |
"time" | |
"unicode" | |
"unicode/utf8" | |
) |
pdftk $1 output - uncompress | perl -p -e 's/BT$/BT\n0.3 0.3 0.3 rg/' | pdftk - output - compress > $1 |
package main | |
import ( | |
"fmt" | |
"math/rand" | |
) | |
const ( | |
ChunkSize = (1 << 16) | |
NumValues = 100 |
# List Custom gopaths | |
gopaths=('/home/piers/projects/ethdenver' '/home/piers/projects/test_gopath') | |
# Always available gopath | |
fallback_gopath=$HOME/go | |
# Used to detect when the gopath changes | |
previous_gopath='' | |
#setgopath sets the gopath based on the current working dierectory. If the | |
#current working dierectory is a gopath or a subdirectory of a gopath then |
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<match target="font"> | |
<edit mode="assign" name="rgba"> | |
<const>rgb</const> | |
</edit> | |
</match> | |
<!-- | |
Hinting makes terminal fonts look pretty shitty but makes browser fonts |