This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# VSCode diff with ephemeral working directory and files | |
diffy() ( | |
# shellcheck disable=SC2317 | |
cleanup() { | |
rm -rf "${HOME}/sandbox" | |
} | |
trap cleanup EXIT | |
trap cleanup TERM | |
[ ! -d "${HOME}/sandbox" ] && mkdir "${HOME}/sandbox" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Auto-configure AWS CLI ~/.aws/config with SSO roles | |
# | |
# Heavily inspired by https://gist.github.com/lukeplausin/3cfedc29755e184ef526b504c77ffe70 👏 | |
# | |
# Copy and paste "starter" config before running `aws sso login --sso-session login`: | |
: <<'COMMENT' | |
[default] |