Skip to content

Instantly share code, notes, and snippets.

View iAnomaly's full-sized avatar
:bowtie:

Cameron Boulton iAnomaly

:bowtie:
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ianomaly on github.
  • I am ianomaly (https://keybase.io/ianomaly) on keybase.
  • I have a public key ASBGn6Ug4bVg58V7zNrH00jrvafU7eVo5cNb-fYm_MI9igo

To claim this, I am signing this object:

AWS NAT Gateways per AZ

aws ec2 describe-nat-gateways | jq -r '.NatGateways[]|select(.State=="available").SubnetId' | xargs aws ec2 describe-subnets --subnet-id | jq -r '.Subnets[].AvailabilityZone' | sort | uniq -c

GitLab stop environments stuck in "stopping"

http "https://gitlab.com/api/v4/projects/40328438/environments?states=stopping" "Authorization: Bearer $GITLAB_ACCESS_TOKEN" | jq '.[].id' | xargs -n1 -I{} http post "https://gitlab.com/api/v4/projects/40328438/environments/{}/stop?force=true" "Authorization: Bearer $GITLAB_ACCESS_TOKEN"