In Github actions
- Get an AWS login somehow. See https://github.com/aws-actions/configure-aws-credentials. Steps:
- name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with:
audience: sts.amazonaws.com
In Github actions
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
audience: sts.amazonaws.com
#!/usr/bin/env bash | |
# Delete all SQS queues with a specified prefix (up to 1000 at a time) | |
# SQS won't list more than 1000 queues at a time, so you may need to run this multiple times. | |
# Usage | |
# | |
# ./delete-sqs-queues-like.sh test- | |
# | |
# Requires `parallel` and `awscli` |
#!/usr/bin/env bash | |
# Run these first so you have the list of test topics, and you know what you're about to delete | |
aws sns list-topics | jq -r .Topics[].TopicArn > topics | |
grep ":test-[[:digit:]]*-" topics > test-topics | |
sed -r 's/[[:digit:]]/X/g' test-topics | sort | uniq -c | |
# Actually delete topics: | |
parallel -j 20 rmtopic.sh < test-topics |
foo-service:30
)docker run
command. Generally we only run one at a time, so we can update services one-type-of-process-at-a-time.From the API examples, in Chrome console:
snippets = $('.syntaxhighlighter.js table')
bits = []; snippets.each((i, snippet) => bits.push(snippet.innerText));
console.log(bits.join('\n'));
After that, I ran ts-node
against squel-test.ts
until it compiled... and I gave up when I started hititng all the class bits.
# Make a VirtualBox VM with enough memory | |
docker-machine create --driver virtualbox --virtualbox-memory 8096 default | |
# Map the VirtualBox VM ports 5432 to localhost | |
VBoxManage controlvm default natpf1 "tcp-port5432,tcp,,5432,,5432" | |
# If this VM will be reused, bake port mapping into the VM | |
VBoxManage modifyvm default --natpf1 "tcp-port5432,tcp,,5432,,5432" | |
# Run a Postgres instance |