Skip to content

Instantly share code, notes, and snippets.

View erichexter's full-sized avatar

Eric Hexter erichexter

View GitHub Profile
@erichexter
erichexter / aan-422-bankruptcy.png
Created May 14, 2026 05:29
LOP-488 Group B AAN screenshots
aan-422-bankruptcy.png
@erichexter
erichexter / azure-cost-agent.md
Created May 12, 2026 17:45
Prompt to build an Azure cost+waste wiki: scaffold a private repo, pull inventory/cost/metrics, file GitHub issues for top waste, and generate human-readable reports. Read-only against Azure. Designed for Claude or similar LLM agents.

Prompt: build an Azure cost-and-waste wiki for our cloud footprint

You're going to set up a private GitHub repository that serves as a grep-optimized knowledge base of our Azure infrastructure, plus a human-readable reporting layer on top of it. The goal is to let me (or anyone with the repo) answer "what do we own, what does it cost, and where are we wasting money" without running ad-hoc az CLI queries each time.

Hard rules

  1. READ-ONLY toward Azure. Never run az commands that mutate Azure state (delete, remove, purge, stop, deallocate, scale-down, tag-write, role-assign, etc.). Only list, show, query, and similar read APIs. If a finding suggests a mutation, write the recommendation into the repo and stop — a human will take the action.
  2. Exclude personal subscriptions. When az account list runs, compare each subscription's tenantId against the company's tenant. Skip anything that isn't in our company's tenant. Confirm with me which tenant is "ours" before persisting anything.
@erichexter
erichexter / windows-setup-guide.md
Last active April 18, 2026 15:32
agent-team: Full Windows Setup Guide — orchestrator, dashboard, self-hosted runner
@erichexter
erichexter / gist:c30f2f207023758a3087304977f7e866
Created March 19, 2022 01:52
DynamoDB resources for recovering sql server developers
AWS re:Invent 2020: Data modeling with Amazon DynamoDB – Part 1 https://www.youtube.com/watch?v=fiP2e-g-r4g&t=809s
AWS re:Invent 2020: Data modeling with Amazon DynamoDB – Part 2 https://www.youtube.com/watch?v=0uLF1tjI_BI
AWS re:Invent 2021 - DynamoDB deep dive: Advanced design patterns https://www.youtube.com/watch?v=xfxBhvGpoa0
Fundamentals of Amazon DynamoDB Single Table Design with Rick Houlihan https://www.youtube.com/watch?v=KYy8X8t4MB8
https://www.dynamodbbook.com/
https://github.com/alexdebrie/awesome-dynamodb
@erichexter
erichexter / info
Last active December 18, 2018 10:47
PS C:\> docker version
Client:
Version: 18.09.0
API version: 1.39
Go version: go1.10.3
Git commit: 33a45cd0a2
Built: unknown-buildtime
OS/Arch: windows/amd64
Experimental: false
{
"format_version": "1.8.0",
"minecraft:entity": {
"description": {
"identifier": "economy:banker",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
fill 1 8 34 1 8 34 stone_stairs 0
fill 1 24 24 1 24 24 stone_stairs 4
fill 2 5 15 2 5 15 spruce_stairs 0
fill 2 5 17 2 5 17 stone_stairs 0
fill 2 5 24 2 5 24 stone_stairs 0
fill 2 5 31 2 5 31 stone_stairs 0
fill 2 5 33 2 5 33 spruce_stairs 0
fill 2 8 34 2 8 34 stone_stairs 5
fill 2 9 32 2 9 32 spruce_stairs 0
fill 2 9 33 2 9 33 spruce_stairs 0
use master
go
declare @dbnames nvarchar(max)
declare @statement nvarchar(max)
set @dbnames = ''
set @statement = ''
select @dbnames = @dbnames + ',[' + name + ']' from sys.databases where name like 'qs_a%' or name like 'qs_int%' or name like 'qs_ui%'
if len(@dbnames) = 0
begin
print 'no databases to drop'
$subscriptions=Get-AzureRmSubscription | select-object SubscriptionId -Unique
$rg=@()
$subscriptions | % {$_; Set-AzureRmContext -SubscriptionId $_.SubscriptionId ; $rg += Get-AzureRmResourceGroup|select-object Resourc
eGroupName}
mkdir c:\temp
cd c:\temp
Invoke-WebRequest -UseBasicParsing http://packages.diladele.com/squid/3.5.22/squid.msi -OutFile c:\temp\squid.msi
.\squid.msi #need to automate this or use chocolatey.org
New-NetFirewallRule -Name Squid -DisplayName Squid -Direction Inbound -Action Allow -Protocol TCP -LocalPort 3128