Skip to content

Instantly share code, notes, and snippets.

View todd-dsm's full-sized avatar
🏗️
Just trying stuff...

Todd Thomas todd-dsm

🏗️
Just trying stuff...
  • smpl-cloud
  • SoCal
View GitHub Profile
@todd-dsm
todd-dsm / gen-passwd.md
Created August 28, 2025 18:55
Generate a strong 32-bit password

Generate Strong Password with OpenSSL

Requirements:

  • 256 bits of entropy from a trusted source: macOS
  • Replaces some characters from SET1 with those specified
  • Snags the first 32 characters

I've stored this script /usr/local/bin/gen-passwd

@todd-dsm
todd-dsm / eks-addons.tf
Created July 15, 2025 15:51
This is a robust example but - it WILL fail. Likely better to add this on as a second layer over the infrastructure. Experiments pending...
########################################################################################################################
# EKS Addons
# VER: https://github.com/aws-ia/terraform-aws-eks-blueprints-addons/releases
# TFR: https://github.com/aws-ia/terraform-aws-eks-blueprints-addons#usage
# GHR: https://github.com/aws-ia/terraform-aws-eks-blueprints-addons/blob/99520ae0125df7b24163e14cf4eba2c96fcf14bd/docs/amazon-eks-addons.md#configuration-values
########################################################################################################################
module "eks_blueprints_addons" {
source = "aws-ia/eks-blueprints-addons/aws"
version = "~> 1.21.0"
@todd-dsm
todd-dsm / gateway-api.tf
Last active July 11, 2025 22:29
Istio (Ambient Mode) + Kubernetes Gateway API with NLB
########################################################################################################################
# Modern Istio Gateway using Kubernetes Gateway API
# Infrastructure (Deployment/Service) is automatically provisioned by Istio
########################################################################################################################
# https://istio.io/latest/docs/tasks/traffic-management/ingress/gateway-api/
# https://gateway-api.sigs.k8s.io/guides/
# https://istio.io/latest/docs/setup/additional-setup/gateway/#gateway-deployment-topologies
########################################################################################################################
# Gateway Class for Istio (defines the controller)
resource "kubernetes_manifest" "istio_gateway_class" {
@todd-dsm
todd-dsm / webapp.yaml
Created May 2, 2025 01:50
Vault Client TEST App
# Deploy the TEST app to the demo namespace
# REF: https://bit.ly/3EKx0cT
---
apiVersion: v1
kind: Namespace
metadata:
name: demo
---
apiVersion: apps/v1
kind: Deployment
@todd-dsm
todd-dsm / values.yaml
Created May 2, 2025 01:47
Vault Helm values.yaml
# REF HCP: https://developer.hashicorp.com/vault/docs/platform/k8s/helm/configuration
# REF VAL: https://github.com/hashicorp/vault-helm/blob/main/values.yaml
# REF PLT: https://repo1.dso.mil/big-bang/product/packages/vault/-/blob/main/chart/values.yaml
# ---------------------------------------------------------------------------------------------------------
global:
enabled: true
namespace: "vault"
tlsDisable: true # Default: true
imagePullSecrets:
- name: private-registry
@todd-dsm
todd-dsm / webapp.yaml
Last active April 28, 2025 23:42
Launch webapp to test HashiCorp Vault config simple-vault-client
# Deploy webapp to test the demo namespace
# REF: https://bit.ly/3EKx0cT
---
apiVersion: v1
kind: Namespace
metadata:
name: demo
---
apiVersion: apps/v1
kind: Deployment
@todd-dsm
todd-dsm / daw-file-sync.md
Created October 24, 2024 04:28
Sync Files Between Remote DAW/Logic Pro Workstations

Sync DAW Files Between Collaborators

Install Go

brew install golang

Set the golang binary directory

export GOPATH="$HOME/go"

@todd-dsm
todd-dsm / shellcheckrc.md
Created September 21, 2024 22:20
shellcheckrc example that fits my style; replace with rules that match your style

Example shellcheckrc File

% cat ~/.shellcheckrc
# ShellCheck: Global Rules
#------------------------------------------------------------------------------
# Disable these annoying rules
disable=SC2317,SC2154,SC2155,SC2086

# Allow the sourcing of files
@todd-dsm
todd-dsm / eks-addons.tf
Created September 10, 2024 03:24
EKS Addons Config
########################################################################################################################
# EKS Addons
# VER: https://github.com/aws-ia/terraform-aws-eks-blueprints-addons/releases
# TFR: https://github.com/aws-ia/terraform-aws-eks-blueprints-addons#usage
# GHR: https://github.com/aws-ia/terraform-aws-eks-blueprints-addons/blob/99520ae0125df7b24163e14cf4eba2c96fcf14bd/docs/amazon-eks-addons.md#configuration-values
########################################################################################################################
module "eks_blueprints_addons" {
source = "aws-ia/eks-blueprints-addons/aws"
version = "~> 1.16.3"
@todd-dsm
todd-dsm / kps-inst.sh
Created August 22, 2024 18:37
install kube-prometheus-stack on minikube via helm
###----------------------------------------------------------------------------
### MAIN PROGRAM
###----------------------------------------------------------------------------
### PREP
###---
###---
### The kube-prometheus stack includes a resource metrics API server, so the
### metrics-server addon is unnecessary.