This file contains hidden or 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
| # | |
| # Copyright (C) Andrei Belov ([email protected]) | |
| # | |
| # This is an example of direnv [1] .envrc file approaching the way | |
| # of using awscli [2] with MFA-enabled accounts in a (more or less) | |
| # secure manner. | |
| # | |
| # The following assumptions are expected: | |
| # | |
| # a) there should be two files, key.asc and skey.asc, containing |
This file contains hidden or 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
| # Default config for sway | |
| # | |
| # Copy this to ~/.config/sway/config and edit it to your liking. | |
| # | |
| # Read `man 5 sway` for a complete reference. | |
| exec wal -R | |
| #notifications | |
| exec mako | |
| exec mailnag |
This file contains hidden or 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
| #!/bin/bash | |
| # Example for the Docker Hub V2 API | |
| # Returns all images and tags associated with a Docker Hub organization account. | |
| # Requires 'jq': https://stedolan.github.io/jq/ | |
| # set username, password, and organization | |
| UNAME="" | |
| UPASS="" | |
| ORG="" |
This file contains hidden or 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 | |
| # Runs a command wrapped in ZFS pre-post snapshots. The whole data pool is recursively snapshotted. | |
| # Analogous to my snp script for BTRFS: https://gist.github.com/erikw/5229436 | |
| # Usage: $ znp <commands> | |
| # e.g.: $ znp pgk upgrade | |
| # e.g.: $ znp portmaster -aG | |
| # e.g.: $ znp freebsd-upgrade install | |
| zfs_pool=zroot |
This file contains hidden or 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
| #list all accounts | |
| aws organizations list-accounts | |
| # List all accounts in a table, don't use client-side pager | |
| # How to Filter the Output with the --query Option: | |
| # https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-output.html#cli-usage-output-filter | |
| # Client-side Pagination: | |
| # https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-pagination.html#cli-usage-pagination-clientside | |
| AWS_PAGER="" aws organizations list-accounts --query 'Accounts[*][Id,Name]' --output table |