-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile
68 lines (55 loc) · 2.11 KB
/
profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
export JAVA_HOME=/usr/local/opt/openjdk@11
export GPG_TTY=$(tty)
mkdir -p $HOME/go
export GOPATH=$HOME/go
export GOCACHE=$HOME/gocache
export AWS_DEFAULT_PROFILE=adfs
export PATH="${GOPATH}/bin:${PATH}"
export TESSERA_JAR="$HOME/IdeaProjects/tessera/tessera-dist/tessera-app/build/libs/tessera-app-20.10.2-SNAPSHOT-app.jar"
export ANDROID_HOME="$HOME/Library/Android/sdk"
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA_11_HOME=$(/usr/libexec/java_home -v11)
alias java8='export JAVA_HOME=$JAVA_8_HOME'
alias java11='export JAVA_HOME=$JAVA_11_HOME'
# default to Java 11
java11
alias psgeth="ps -ef | grep geth"
alias makegeth="make clean && make all && cp $HOME/IdeaProjects/quorum/build/bin/geth /usr/local/bin/geth && rm -r build/bin"
alias clearmaven="rm -rf $HOME/.m2/repository/*"
alias mvni="mvn clean && mvn install"
alias mvnist="mvn clean && mvn install -DskipTests=true"
alias resetes="cd ../.. && rm -rf elasticsearch-7.6.2 && tar -xvf elasticsearch-7.6.2-darwin-x86_64.tar.gz && cd elasticsearch-7.6.2/bin && ./elasticsearch"
alias pcl="$HOME/Downloads/pcl aws --sandbox-user --domain emea --sid d550749"
alias top="htop"
alias ping="prettyping"
alias ls="exa -a --long"
alias cat="bat"
function testCommit {
cd ~/IdeaProjects/TaskManager
echo "a" >> a.txt
git add -A
git commit -am "Next"
}
function attach {
cd $HOME/IdeaProjects/quorum-examples/examples/7nodes
geth attach qdata/dd${1}/geth.ipc
}
function resetdocker() {
docker stop -t 1 $(docker ps -aq)
docker rm $(docker ps -aq)
docker rmi -f $(docker images -q)
docker network prune -f
docker volume prune -f
docker system prune --all --force --volumes
}
function resetdockerKeepImages() {
docker stop -t 1 $(docker ps -aq)
docker rm $(docker ps -aq)
docker network prune -f
docker volume prune -f
}
function runSingleAcceptanceTest {
local rnd=${RANDOM}
docker run --rm --network host -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/acctests${rnd}:/tmp/acctests${rnd} quorumengineering/acctests:latest test -Pauto -Dtags="${1}" -Dauto.outputDir=/tmp/acctests${rnd} -Dnetwork.forceDestroy=true
}