Skip to content

Instantly share code, notes, and snippets.

View elviswolcott's full-sized avatar

Elvis Wolcott elviswolcott

  • Olin Electric Motorsports
  • Needham, MA
View GitHub Profile
@elviswolcott
elviswolcott / git-tag-rm.sh
Created January 26, 2020 01:40
Remove all local and remote tags from a repository
git tag | xargs -I % bash -c 'git tag -d % ; git push origin :refs/tags/%'
@elviswolcott
elviswolcott / delete-layer.sh
Created January 26, 2020 08:05
Delete all Lambda layer versions across all regions
layer=$1
get_regions () {
echo $(aws ssm get-parameters-by-path --region "us-east-1" --path /aws/service/global-infrastructure/services/lambda/regions --query 'Parameters[].Value' --output text | tr '[:blank:]' '\n' | grep -v -e ^cn- -e ^us-gov- | sort -r)
}
regions=$(get_regions)
get_versions () {
echo $(aws lambda list-layer-versions --layer-name "$layer" --region "$region" --output text --query LayerVersions[].Version | tr '[:blank:]' '\n')
}
@elviswolcott
elviswolcott / highlight-test.md
Last active March 25, 2020 02:50
Example of highlight comments working in comment styles
id title sidebar_label
highlight-test
Advanced Highlighting
Highlighting

:::note Assumes you are using @docusaurus-preset-classic. :::