mirror of
https://gitea.com/mcereda/oam.git
synced 2026-03-04 07:54:25 +00:00
chore: dump commands for future reference
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user