This document contains all AWS SSO-related aliases and functions from my bash configuration.
Logs into AWS SSO and sets up credentials. Supports console launch with -c flag.
Use this prompt when investigating any failing Terraform Cloud (TFC) workspaces. This methodology emphasizes temporal analysis, change detection, and environmental discovery to understand when failures began and what changes triggered them. Applicable to any Terraform infrastructure provisioning issues.
Use this prompt when investigating failing Terraform Cloud (TFC) workspaces related to EKS cluster provisioning using Takeda Building Blocks. This methodology was developed from successfully resolving TFC workspace failures involving VPC CNI resource adoption issues.
| # Cursor Agent Bash Initialization Patch | |
| # Adds `G8n+` prefix to bash command execution to ensure proper bash initialization before running commands, | |
| # fixing potential shell state issues. | |
| # Cursor Agent Bash Fix | |
| ```bash | |
| #!/bin/bash |
| # Configure the jq provider | |
| terraform { | |
| required_providers { | |
| jq = { | |
| source = "massdriver-cloud/jq" | |
| version = "0.2.0" | |
| } | |
| } | |
| } |
| #!/usr/bin/env python3 | |
| import logging | |
| from concurrent.futures import ThreadPoolExecutor, as_completed | |
| from botocore.exceptions import ClientError | |
| # Configure logging | |
| logging.getLogger().setLevel(logging.INFO) | |
| logger = logging.getLogger() |
| #!/bin/bash | |
| # Add a patch release to a bunch of github repos | |
| set -eu -o pipefail | |
| git() { | |
| ( | |
| set -xv | |
| command git "$@" |
| #! powershell | |
| $HttpListener = New-Object System.Net.HttpListener | |
| $HttpListener.Prefixes.Add("http://+:80/") | |
| $HttpListener.Prefixes.Add("http://+:18093/") | |
| $HttpListener.Prefixes.Add("http://+:18095/") | |
| # $HttpListener.Prefixes.Add("https://+:443/") | |
| $HttpListener.Start() |
| #!/bin/bash | |
| set -eu -o pipefail | |
| content="foo and bar and baz" | |
| content="$(base64 <<<"$content")" | |
| sha=$(git ls-files -s foo | awk '{print $2}') |
| # Install cleanup utils | |
| apt-get install -y deborphan | |
| # Remove all desktop/gui/hci packages/libraries | |
| apt-get purge -yyq --auto-remove \ | |
| task-desktop x11-common fdutils \ | |
| '*ubuntu-desktop*' \ | |
| '*X11*' '*wayland*' '*xdmcp*' '*gtk*' '*gnome*' 'x11-*' '*font*' \ | |
| '*orca*' '*bluez*' '*bluetooth*' '*audio*' '*desktop*' '*laptop*' \ | |
| '*acpi*' '*spell*' '*avahi*' '*-faq*' '*cups*' '*sane*' '*icon*' \ |