Quick way to delete all existing build history from AWS CodeBuild using the AWS CLI.
#!/bin/bash -e
buffer=()
for buildId in $(aws codebuild list-builds --query 'ids.join(`\n`,@)' --output text); do
buffer+=($buildId)
Quick way to delete all existing build history from AWS CodeBuild using the AWS CLI.
#!/bin/bash -e
buffer=()
for buildId in $(aws codebuild list-builds --query 'ids.join(`\n`,@)' --output text); do
buffer+=($buildId)
Bash script to install the latest released version of the AWS CLI v2 from the distrubuted source.
Using this method to exectue the CLI under a MacBook M1 laptop as a native ARM binary - rather than falling back to Rosetta. Currently the offically packaged macOS .pkg
doesn't support both Intel/M1 architectures.
Script designed to be re-run - will blow away an existing install and re-install the latest available version.
Note
This install script assumes you have installed a suitable version of Python 3 - has been tested against Python 3.10.11
under macOS Sonoma v14.6.1
.
Small Bash script, calling curl
with the --aws-sigv4
option to AWS V4 sign a given request for use with an IAM authorized API Gateway endpoint.
./aws-api-gateway-iam.sh \
--request GET \
"https://api-gateway.mydomain.com/this/route/aws-iam-authz"
> [!NOTE]
> Note.
Using launchd
to watch a filesystem directory and upon create/change to a file with the directory, execute a command.
For this example:
/path/to/watch
./path/to/command argument1 argument2
.Script to fetch a GitHub organisation member list and gpg --import
the public GPG key(s) for each member with GPG key(s) associated against their profile.
Requires curl
for GitHub API calls, jq
for parsing GitHub REST API responses and (obviously) gpg
.
Create a GitHub personal access token (classic or fine-grained) with read access to organisation members:
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 2 | |
indent_style = tab | |
insert_final_newline = true | |
trim_trailing_whitespace = true |
{ | |
"root": true, | |
"parserOptions": { | |
"sourceType": "module" | |
}, | |
"env": { | |
"es2020": true, | |
"node": true | |
}, | |
"extends": [ |