Skip to content

Instantly share code, notes, and snippets.

View wolfeidau's full-sized avatar
🐺
Building data science projects

Mark Wolfe wolfeidau

🐺
Building data science projects
View GitHub Profile
@wolfeidau
wolfeidau / super-review.md
Created July 2, 2026 00:58
cat ~/.claude/commands/super-review.md
name super-review
description Reviews in detail a set of changes performed by a different agent. Use when reviewing or when the user asks you to review something or when the user asks "review please" or "super-review" or "superreview".

Review by understanding the user's intention and the changes made towards that.

DO NOT WRITE CODE.

Your goal is to give detailed review comments on the changes in this branch, which were authored by an implementation agent.

@wolfeidau
wolfeidau / content-addressable-cache-spec.md
Created January 17, 2026 08:43
A recent side project specification written with Claude Code

Content-Addressable Cache Implementation Plan

Overview

A Go-based unified package cache supporting NPM packages and Go modules, with content-addressable storage using BLAKE3, multiple storage backends, and combined TTL/LRU expiration.

Research Findings

pnpm's CAFS (model we'll follow for NPM)

  • Files stored by SHA-512 hash at ~/.pnpm-store/v3/files/{hash[0:2]}/{hash}
  • File-level deduplication across all packages
@wolfeidau
wolfeidau / 00_NOTES.md
Last active December 25, 2025 10:26
Spec Driven Development with claud extracted from a project.

🚀 Example Usage

Next time you have a complex feature:

You tell Claude Code: "I need to add rate limiting to the job API following the layered spec pattern in specs/mtls/. This involves updating the server, adding Redis, and new Terraform resources. Estimated 8 hours of work."

@wolfeidau
wolfeidau / trace.go
Created September 29, 2024 22:20
honeycomb tracing simplified
package trace
import (
"context"
"fmt"
"os"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/exporters/otlp/otlptrace"
"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc"
@wolfeidau
wolfeidau / main.go
Last active July 30, 2024 22:12
Allow disabling of HTTP/2.0 while using the optimal default configuration in Go
package main
import (
"crypto/tls"
"flag"
"log/slog"
"net/http"
"os"
)
@wolfeidau
wolfeidau / dmesg
Last active June 20, 2024 11:12
cc33xx is a bit crashy
[ 15.937354] ------------[ cut here ]------------
[ 15.937377] memcpy: detected field-spanning write (size 3) of single field "passive" at drivers/net/wireless/ti/cc33xx/scan.c:48 (size 2)
[ 15.937472] WARNING: CPU: 2 PID: 655 at drivers/net/wireless/ti/cc33xx/scan.c:48 cc33xx_adjust_channels+0x1a4/0x1e0 [cc33xx]
[ 15.937526] Modules linked in: stp llc cc33xx mac80211 rpmsg_ctrl rpmsg_char virtio_rpmsg_bus rpmsg_ns libarc4 algif_aead snd_soc_simple_card snd_soc_simple_card_utils crct10dif_ce cc33xx_sdio pvrsrvkm(O) pwm_fan cpufreq_dt e5010_jpeg_enc at24 rti_wdt ti_k3_r5_remoteproc snd_soc_davinci_mcasp snd_soc_ti_udma wave5 videobuf2_dma_contig v4l2_mem2mem snd_soc_ti_edma videobuf2_memops snd_soc_hdmi_codec snd_soc_ti_sdma videobuf2_v4l2 ti_k3_dsp_remoteproc snd_soc_core videobuf2_common btti_uart videodev ti_k3_common bluetooth cfg80211 snd_pcm_dmaengine mc snd_pcm snd_timer snd uio_pdrv_genirq uio loop dm_mod efi_pstore
[ 15.937690] CPU: 2 PID: 655 Comm: iwd Tainted: G O 6.1.80-ti
@wolfeidau
wolfeidau / cache.go
Created April 20, 2024 02:23
Small SSM Cache
package cache
import (
"context"
"fmt"
"time"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/ssm"
"github.com/patrickmn/go-cache"
@wolfeidau
wolfeidau / go.mod
Last active February 6, 2024 00:13
Testing out adbc to duckdb.
SIGSEGV: segmentation violation
PC=0x0 m=10 sigcode=2
signal arrived during cgo execution
goroutine 1 [syscall]:
runtime.cgocall(0x10083c984, 0x14000115418)
/opt/homebrew/Cellar/go/1.21.6/libexec/src/runtime/cgocall.go:157 +0x44 fp=0x140001153e0 sp=0x140001153a0 pc=0x100485044
github.com/apache/arrow-adbc/go/adbc/drivermgr._Cfunc_AdbcStatementRelease(0x14000184000, 0x1400050c930)
_cgo_gotypes.go:498 +0x34 fp=0x14000115410 sp=0x140001153e0 pc=0x100818694
github.com/apache/arrow-adbc/go/adbc/drivermgr.(*stmt).Close.func1(0x14000115478?, 0x0?)
@wolfeidau
wolfeidau / terraform.cfn.yaml
Created August 1, 2023 01:07
CFN for terraform State and Locks
AWSTemplateFormatVersion: 2010-09-09
Description: >
wolfeidau: Terraform state and locks infrastructure
Parameters:
Environment:
Type: String
Default: dev
Outputs:
TerraformLockTableName:
@wolfeidau
wolfeidau / main.go
Created July 5, 2023 21:40
Copy columns to new file.
package main
import (
"fmt"
"os"
"github.com/alecthomas/kong"
"github.com/apache/arrow/go/v13/parquet"
"github.com/apache/arrow/go/v13/parquet/compress"
"github.com/apache/arrow/go/v13/parquet/file"