I hereby claim:
- I am kkumler on github.
- I am kkumler (https://keybase.io/kkumler) on keybase.
- I have a public key ASBxMX3sDYIPNPtC11O16lLeRTkGFnFawhH56VmAlQBkvgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| { | |
| "title": "Change option+x to c, for when your c key breaks", | |
| "rules": [ | |
| { | |
| "description": "Change option+x to c", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "x", |
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| # As is the classic warning, this is so far light on error handling. | |
| # Get a set of parameters from Systems Manager Parameter Store and format them for use as environment variables | |
| # Usage: ./get-parameters.sh [--export] prefix [prefix...] | |
| # Options: |
| # Given a file with a list of required services, sorted | |
| # This could be created by aws ssm get-parameters-by-path --path /aws/service/global-infrastructure/regions/us-east-1/services --query 'Parameters[].Name' --output yaml | cut -d'/' -f8 | sort > aws-services-us-east-1.txt | |
| # And using GNU coretools (prefixed here with g, as usual with Homebrew on macos) | |
| # Environment variables AWS_PROFILE & REGION exported | |
| gcomm -2 -3 required-services.txt <(aws ssm get-parameters-by-path --path /aws/service/global-infrastructure/regions/$REGION/services --query 'Parameters[].Name' --output yaml | cut -d'/' -f8 | sort) |
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| FAMILY_PREFIX="" | |
| # Ensure variables are set, that we don't directly use. This works do to the nounset option. | |
| [[ "${AWS_PROFILE:?}" ]] |