chore: dump commands for future reference

This commit is contained in:
Michele Cereda
2026-03-03 21:38:29 +01:00
parent cf23d1d2d2
commit dc04ea5390
2 changed files with 10 additions and 1 deletions

View File

@@ -1,9 +1,12 @@
#!/usr/bin/env fish
# List the current application settings of the GitLab instance.
curl -sH 'PRIVATE-TOKEN: glpat-m-…' 'https://gitlab.fqdn/api/v4/application/settings' | jq
curl -sH 'PRIVATE-TOKEN: glpat-abcdefghijklmnopqrst' 'https://gitlab.fqdn/api/v4/application/settings' | jq
# Show the diff in settings between two instances
jd -color \
( curl -ksH 'PRIVATE-TOKEN: glpat-abcdefghijklmnopqrst' 'https://gitlab.test.fqdn/api/v4/application/settings' | jq | psub ) \
( curl -ksH 'PRIVATE-TOKEN: glpat-0123456789abcdefghij' 'https://gitlab.prod.fqdn/api/v4/application/settings' | jq | psub)
# Show information about project access tokens.
curl -sH 'PRIVATE-TOKEN: glpat-abcdefghijklmnopqrst' 'https://gitlab.fqdn/api/v4/projects/58/access_tokens/300'

View File

@@ -18,3 +18,9 @@ gopass templates cat 'path/to/dir'
# Remove templates
gopass templates remove 'path/to/dir'
gopass templates rm 'path/to/dir'
# Change passwords programmatically.
gopass cat 'path/to/entry' | sed '1s/.*/newPassword123/' | gopass insert -f 'path/to/entry'
# Show multiple entries.
parallel -j1 -o gopass cat db/{1}/{2}/users/postgres ::: ch us gb ::: prd stg