Skip to content

Instantly share code, notes, and snippets.

@bennyrw
bennyrw / generateAwsCredsFile.js
Created September 23, 2022 09:53
Generate AWS credentials file content from SSO
//
// Intended to be used as a bookmarklet that is executed when on the AWS Single Sign-On landing page,
// this script scans the named SSO application and its accounts (specified below) and generates the
// ~/.aws/credentials content and copies it to the clipboard ready to be used.
//
// the SSO application to use
const APPLICATION_TITLE = "AWS Account";
// specify the names of the accounts to include (case sensitive). Any that are not found will be ignored.
@bennyrw
bennyrw / .zshrc
Created October 1, 2020 11:01
Include Git branch in zsh prompt
#
# Prompt customisation for Git branch
#
# Use colors module for simpler usage of colours in prompt
autoload -U colors && colors
# Use vcs_info module for getting Git info (see https://arjanvandergaag.nl/blog/customize-zsh-prompt-with-vcs-info.html)
autoload -Uz vcs_info