From 7759eb0e01d92f15066e87f4d05443c24ade27a9 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sun, 8 Dec 2024 17:58:16 +0100 Subject: [PATCH] chore(snippets): improve exemplary commands --- snippets/dblab.fish | 1 + snippets/postgres/commands.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/snippets/dblab.fish b/snippets/dblab.fish index 7e69972..7114dc3 100644 --- a/snippets/dblab.fish +++ b/snippets/dblab.fish @@ -15,6 +15,7 @@ curl -X 'POST' 'https://dblab.company.com:1234/api/clone' -H "Verification-Token # Get clones' information curl 'https://dblab.company.com:1234/api/clone/smth' -H "Verification-Token: $(gopass show -o 'dblab')" +dblab --url 'http://dblab.company.com:1234/' --token "$(gopass show -o 'dblab')" clone status 'smth' # Reset clones curl -X 'POST' 'https://dblab.company.com:1234/api/clone/smth/reset' -H "Verification-Token: $(gopass show -o 'dblab')" \ diff --git a/snippets/postgres/commands.sh b/snippets/postgres/commands.sh index 1dd07c7..9c887d9 100644 --- a/snippets/postgres/commands.sh +++ b/snippets/postgres/commands.sh @@ -42,7 +42,7 @@ psql 'postgres' 'admin' psql --host 'prod.db.lan' --port '5432' --username 'postgres' --database 'postgres' --password psql -h 'host.fqnd' -p '5432' -U 'admin' -d 'postgres' -W psql 'postgresql://localhost:5433/games?sslmode=require' -psql 'host=host.fqdn port=5467 user=admin dbname=postgres' +PGPASSWORD='password' psql 'host=host.fqdn port=5467 user=admin dbname=postgres' psql "service=prod sslmode=require" # List available databases