This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Clone (or update existing clones) for every BOSH release listed in | |
| cf-deployment.yml, checked out at the exact tagged version, with submodules | |
| initialized recursively. | |
| Runs all releases in parallel with a live Rich progress display. | |
| Usage: | |
| ./clone-bosh-releases.py [cf-deployment.yml] [dest-dir] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Script to create a large number of UAA groups and assign them to a user | |
| to inflate their JWT access token size beyond 8KB. | |
| Note that clients can filter what scopes are included in the token. You | |
| may need to add "poetic-token-bloat-*" as a wildcard scope to the client | |
| requesting the token. | |
| 🤖 This script was generated with Gemini 3 Pro, with some light modification |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Adapted from https://www.pgrs.net/2022/06/02/simple-command-line-function-to-decode-jwts/ | |
| jwt() { | |
| if [ "$#" -gt 0 ]; then | |
| printf %s "$@" | sed 's/[Bb]earer //' | jq -R 'split(".") |.[0:2] | map(gsub("-"; "+") | gsub("_"; "/") | gsub("%3D"; "=") | @base64d) | map(fromjson)' <<< $1 | |
| else | |
| sed 's/[Bb]earer //' | jq -R 'split(".") |.[0:2] | map(gsub("-"; "+") | gsub("_"; "/") | gsub("%3D"; "=") | @base64d) | map(fromjson)' | |
| fi | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # Usage: | |
| # ./java_app_sniffer.py | |
| # | |
| # Environment Variables (optional): | |
| # PAGE_SIZE - Specifies how many droplets to retrieve per API request (Default: 5000) | |
| # BUILDPACK_NAME - Specifies the name of the java buildpack for targeted environment (Default: java_buildpack) | |
| # | |
| # Note: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'date' | |
| require 'open3' | |
| class Main | |
| class << self | |
| def resources | |
| %w[ | |
| app_usage_events |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'date' | |
| require 'open3' | |
| class Main | |
| class << self | |
| def resources | |
| %w[apps] | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: UTF-8 -*- | |
| # Instructions | |
| # chmod +x auto_pm.py | |
| # ./auto_pm.py | |
| import json | |
| import random | |
| import base64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'rspec' | |
| require 'open3' | |
| require 'json' | |
| require 'cgi' | |
| RESOURCE_ENDPOINT = '/v3/routes' | |
| RESOURCE_BODY = { | |
| 'host': '<random>', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'pp' | |
| SCOPE_USERS = { | |
| admin: 'admin', | |
| admin_read_only: 'admin_read_only', | |
| global_auditor: 'global_auditor' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Keybase proof | |
| I hereby claim: | |
| * I am gerg on github. | |
| * I am gcobb (https://keybase.io/gcobb) on keybase. | |
| * I have a public key whose fingerprint is 3AD0 4F45 DF0C 3C20 43E8 D196 50F0 D2CE B363 B6CF | |
| To claim this, I am signing this object: |
NewerOlder