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 / kernel-panic.c
Created November 13, 2025 04:35
macbook flashed a fuchsia screen and rebooted - twice
```
panic(cpu 0 caller 0xfffffe0024b36cf0): busy timeout[1], (60s): 'AppleAPFSMedia' (a,4020001) @IOService.cpp:5829
Debugger message: panic
Memory ID: 0x6
OS release type: User
OS version: 24G90
Kernel version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:29 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6000
Fileset Kernelcache UUID: 0843B4A77BE94220E9BFBC6024B71273
Kernel UUID: D013020A-F19B-3730-8283-F7E47107D27A
Boot session UUID: 8B5D8AA0-0E37-4BF4-A2CA-0F2AFDBBAB59
@todd-dsm
todd-dsm / backup.sh
Last active November 11, 2025 18:13
Example rsync-backups special-backups.conf output
~/.config/rsync/backups 2>&1 | tee /tmp/backups.log
Running LIVE backup
Backing up special files:
+ IFS=,
+ read -r program source_path
+ [[ -z # backup random files and follow the format; $HOME is assumed ]]
+ [[ # backup random files and follow the format; $HOME is assumed = \#* ]]
+ continue
@todd-dsm
todd-dsm / excludes
Created October 24, 2025 17:39
rync excludes file - updated
.android*
.appgatesdp*
.atom/
# Include only .aws/{config,credentials}, exclude all else
+ /.aws/
- /.aws/cli
- /.aws/sso
.aws/sso/cache/
.bash_sessions/
.bun*
@todd-dsm
todd-dsm / print.func-output.sh
Created September 22, 2025 23:29
print.func example output
# print.func example output
# REF: https://gist.github.com/todd-dsm/17560775b7e5e4d22339885eeb276784
% ./template.sh
--------------------------------------------------------------------------------
Lets do some STUFF!
--------------------------------------------------------------------------------
Do thing...
@todd-dsm
todd-dsm / cursor-settings.md
Last active September 19, 2025 16:32
Cursor/Code Base Settings

Cursor Base Settings

These are some sensible defaults; a good place to start.

Located: "$HOME/Library/Application Support/Cursor/User/settings.json"

@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