A lowly tech priest's attempt to please Mars
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add helpful scripts

+48
+17
bin/pds/create-invite
··· 1 + #!/usr/bin/env bash 2 + set -euo pipefail 3 + 4 + cd "$(dirname "$0")/../.." 5 + 6 + PDS_ADMIN_PASSWORD=$(sops decrypt --extract '["stringData"]["PDS_ADMIN_PASSWORD"]' kubernetes/apps/at/pds/secrets.yaml) 7 + PDS_HOSTNAME="pds.$(sops decrypt --extract '["stringData"]["ATPROTO_HOST"]' kubernetes/system/settings/cluster-secrets.yaml)" 8 + 9 + curl \ 10 + --fail \ 11 + --silent \ 12 + --show-error \ 13 + --request POST \ 14 + --user "admin:${PDS_ADMIN_PASSWORD}" \ 15 + --header "Content-Type: application/json" \ 16 + --data '{"useCount": 1}' \ 17 + "https://${PDS_HOSTNAME}/xrpc/com.atproto.server.createInviteCode" | jq --raw-output '.code'
+15
bin/pds/request-crawl
··· 1 + #!/usr/bin/env bash 2 + set -euo pipefail 3 + 4 + cd "$(dirname "$0")/../.." 5 + 6 + PDS_HOSTNAME="pds.$(sops decrypt --extract '["stringData"]["ATPROTO_HOST"]' kubernetes/system/settings/cluster-secrets.yaml)" 7 + 8 + curl \ 9 + --fail \ 10 + --silent \ 11 + --show-error \ 12 + --request POST \ 13 + --header "Content-Type: application/json" \ 14 + --data "{\"hostname\": \"${PDS_HOSTNAME}\"}" \ 15 + "https://bsky.network/xrpc/com.atproto.sync.requestCrawl" >/dev/null
+12
bin/psql
··· 1 + #!/usr/bin/env bash 2 + set -eou pipefail 3 + 4 + if [ $# -lt 1 ]; then 5 + echo "Usage: bin/psql <name>" >&2 6 + exit 1 7 + fi 8 + 9 + primary="$(kubectl get cluster -n postgres "$1" -o=jsonpath='{.status.currentPrimary}')" 10 + shift 11 + 12 + kubectl exec -n postgres "$primary" -it -- psql "$@"
+4
bin/run-renovate
··· 1 + #!/usr/bin/env bash 2 + set -euo pipefail 3 + 4 + kubectl -n macharian create job --from=cronjob/renovate renovate-manual