Skip to content

Instantly share code, notes, and snippets.

View shalomb's full-sized avatar
🎯
Knolling

Shalom Bhooshi shalomb

🎯
Knolling
View GitHub Profile
@shalomb
shalomb / Generic_Terraform_Troubleshooting_Methodology.md
Created October 9, 2025 16:34
Generic 20-Step AI Agent Troubleshooting Prompt for Terraform Cloud Workspace Failures - Emphasizes temporal analysis, change detection, and environmental discovery to understand when failures began and what changes triggered them

Generic AI Agent Troubleshooting Prompt: Terraform Cloud Workspace Failures

Context

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.

Prerequisites

  • Access to Terraform Cloud API
  • GitHub CLI tools available
  • Git repository access
  • Terraform CLI installed
@shalomb
shalomb / AI_Agent_EKS_TFC_Troubleshooting_Guide.md
Created October 9, 2025 16:14
20-Step AI Agent Prompt for Troubleshooting EKS Terraform Cloud Workspace Failures - Systematic methodology for investigating and resolving TFC issues with Takeda Building Blocks

AI Agent Troubleshooting Prompt: EKS Terraform Cloud Workspace Failures

Context

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.

Prerequisites

  • Access to Terraform Cloud API
  • GitHub CLI tools available
  • Git repository access
  • Terraform CLI installed
@shalomb
shalomb / cursor-agent-eval-bugfix.sh
Last active September 24, 2025 07:24
cursor-agent shell eval bugfix
# 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
@shalomb
shalomb / tf-dns-lookup.tf
Created August 14, 2024 11:34
Terraform DNS Lookup
# Configure the jq provider
terraform {
required_providers {
jq = {
source = "massdriver-cloud/jq"
version = "0.2.0"
}
}
}
@shalomb
shalomb / sync-dynamodb-tables.py
Created August 6, 2024 08:06
Sync dynamodb table data
#!/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()
@shalomb
shalomb / patch-release.bash
Created August 5, 2024 09:32
Patch release modules
#!/bin/bash
# Add a patch release to a bunch of github repos
set -eu -o pipefail
git() {
(
set -xv
command git "$@"
@shalomb
shalomb / start-webserver.ps1
Last active January 4, 2024 13:10
Powershell Echo Server
#! 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()
@shalomb
shalomb / git-update-content.sh
Last active October 24, 2023 19:41
Update git content via API
#!/bin/bash
set -eu -o pipefail
content="foo and bar and baz"
content="$(base64 <<<"$content")"
sha=$(git ls-files -s foo | awk '{print $2}')
@shalomb
shalomb / setup.sh
Last active April 21, 2023 12:52
Minimal Debian Image
# 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*' \
# neovim build dependencies
sudo apt-get build-dep neovim -t unstable
# Build tools
sudo apt install build-essential libtool libtool-bin devscripts
# git source
git clone https://github.com/neovim/neovim.git
cd neovim
# Checkout latest tag