2022-09-06 11:07:49 +02:00
|
|
|
gradleWrapper () {
|
|
|
|
if [ ! -f gradlew ]; then
|
|
|
|
echo "No 'gradlew' found. Maybe you are not in the root dir of a gradle project?"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
TEMPFILE=$(mktemp /tmp/gw.XXXXXX)
|
2022-09-06 13:32:53 +02:00
|
|
|
unbuffer ./gradlew "$@" | tee $TEMPFILE
|
2022-09-06 11:07:49 +02:00
|
|
|
|
|
|
|
echo
|
2022-09-06 13:32:53 +02:00
|
|
|
grep --color=never "Report:" $TEMPFILE
|
2022-09-06 11:07:49 +02:00
|
|
|
rm $TEMPFILE
|
|
|
|
}
|
|
|
|
|
2022-09-15 11:19:04 +02:00
|
|
|
alias podman-start='systemctl --user enable --now podman.socket && systemctl --user status podman.socket && ls -la /run/user/$UID/podman/podman.sock'
|
2022-09-16 15:25:58 +02:00
|
|
|
alias podman-stop='systemctl --user disable --now podman.socket && systemctl --user status podman.socket && ls -la /run/user/$UID/podman/podman.sock'
|
2022-09-15 11:19:04 +02:00
|
|
|
alias podman-use='export DOCKER_HOST="unix:///run/user/$UID/podman/podman.sock"; export TESTCONTAINERS_RYUK_DISABLED=true'
|
2022-09-06 11:07:49 +02:00
|
|
|
|
|
|
|
alias gw=gradleWrapper
|
2022-07-28 10:43:49 +02:00
|
|
|
alias pg-sql-run='docker run --name hsadmin-ng-postgres -e POSTGRES_PASSWORD=password -p 5432:5432 -d postgres:13.7-bullseye'
|
|
|
|
alias pg-sql-stop='docker stop hsadmin-ng-postgres'
|
|
|
|
alias pg-sql-start='docker container start hsadmin-ng-postgres'
|
|
|
|
alias pg-sql-remove='docker rm hsadmin-ng-postgres'
|
|
|
|
alias pg-sql-reset='pg-sql-stop; pg-sql-remove; pg-sql-run'
|
|
|
|
alias pg-sql-backup='docker exec -i hsadmin-ng-postgres /usr/bin/pg_dump --clean --create -U postgres postgres | gzip -9'
|
|
|
|
alias pg-sql-restore='gunzip --stdout | docker exec -i hsadmin-ng-postgres psql -U postgres -d postgres'
|
|
|
|
|
2022-10-03 11:09:36 +02:00
|
|
|
alias fp='grep -r '@Accepts' src | sed -e 's/^.*@/@/g' | sort -u | wc -l'
|