Skip to content

Instantly share code, notes, and snippets.

View garagon's full-sized avatar

Gus garagon

View GitHub Profile
@garagon
garagon / token_analysis.py
Created April 8, 2026 03:41 — forked from kieranklaassen/token_analysis.py
Claude Code token usage analyzer - breaks down usage by project, session, and subagent
#!/usr/bin/env python3
"""
Claude Code token usage analyzer.
Analyzes ~/.claude/projects/ JSONL files for token usage patterns.
"""
import json
import os
import sys
from pathlib import Path
@garagon
garagon / SECURITY-AUDIT.md
Created March 27, 2026 19:17
Security Audit: gstack (garrytan/gstack) — 2 Critical, 4 High, 4 Medium (double-verified, 0 false positives)

Security Audit Report: gstack

Target: github.com/garrytan/gstack Version: 0.12.11.0 (commit HEAD at time of audit) Date: 2026-03-27 Auditor: Independent security review Scope: Full codebase — HTTP server, browser extension, cookie handling, shell scripts, CI/CD, skill system Methodology: Static analysis, data flow tracing, authentication boundary mapping, crypto review, double-pass verification (all findings re-validated against source to eliminate false positives)


@garagon
garagon / gstack-skills-fixes.md
Last active June 9, 2026 04:46
Fixing gstack skills.sh audit failures (Socket + Snyk)

Fixing gstack skills.sh audit failures

Audit reports: Socket (20 alerts) and Snyk (3 findings). Each finding below is cross-referenced against the actual repo code.

For the AI agent applying these fixes: each section has the file path, the current code, and the replacement. All fixes preserve existing functionality. Run the test suite after each group of changes.

IMPORTANT: SKILL.md files are generated by the setup script from templates. Edits to generated SKILL.md files will be overwritten on next ./setup run. Apply fixes to the source templates (SKILL.md.tmpl or equivalent template files) so they persist across regeneration. After editing templates, run ./setup to regenerate all SKILL.md files and verify the fixes appear in the output.


@garagon
garagon / gumroad-4060-update.md
Created March 26, 2026 23:08
Fix: Inactive subscribers not receiving updated rates on reactivation (antiwork/gumroad#4060)

Fix: Inactive subscribers not receiving updated rates on reactivation (#4060)

What

When an inactive subscriber reactivates their membership, the system now charges the current tier price instead of the original purchase price. This only applies when the seller has enabled "apply price changes to existing memberships" on the tier.

Two code paths are covered:

gstack Improvement Spec

17 improvements for gstack. Some will make sense, some won't. All of this came from building a nano version of your project to understand it in depth. Each one is independent and includes a working implementation.


1. Sprint Coordination

1.1 Scope Drift Detection

@garagon
garagon / automated-GA4-daily-report.md
Last active March 9, 2026 22:08
Automated GA4 Daily Report → Slack
name google-analytics
description Automated daily GA4 report → Slack · startup-focused with growth metrics and benchmarks

Automated GA4 Daily Report → Slack

Daily analytics digest built for startups. Tracks the metrics that matter at early stage: weekly growth rate, acquisition channels, engagement quality, and organic traction. Compares your numbers against YC and industry benchmarks so you know where you stand, not just what changed.

Setup — replace these 3 values before running

@garagon
garagon / windows-privesc-checklist.md
Created February 17, 2026 13:27
Windows Privilege Escalation Checklist — Token abuse, service misconfigs, AlwaysInstallElevated, UAC bypass, credential dumping

Windows Privilege Escalation Checklist

Systematic checklist for escalating privileges on Windows systems during authorized pentests and CTFs.

Initial Enumeration

# Current user and privileges
whoami
whoami /priv
@garagon
garagon / wifi-pentesting-cheatsheet.md
Created February 17, 2026 13:27
WiFi Pentesting Cheat Sheet — Monitor mode, WPA/WPA2 handshake capture, PMKID attack, Evil Twin, WPS attacks

WiFi Pentesting Cheat Sheet

Wireless network security testing commands and workflows for authorized assessments.

Interface Setup

# List wireless interfaces
iwconfig
iw dev
@garagon
garagon / log-analysis-oneliners.sh
Created February 17, 2026 13:27
Log Analysis One-Liners — SSH/auth, web server, Windows event logs, network/firewall log analysis commands for IR
#!/bin/bash
# =============================================================================
# Log Analysis One-Liners for Incident Response & Threat Hunting
# Useful commands for analyzing Linux/web/auth logs during investigations.
# =============================================================================
# ╔═══════════════════════════════════════════════════════════════════╗
# ║ AUTH / SSH LOGS (/var/log/auth.log or /var/log/secure) ║
# ╚═══════════════════════════════════════════════════════════════════╝
@garagon
garagon / burpsuite-tips.md
Created February 17, 2026 13:27
Burp Suite Tips & Workflow — Setup, Proxy, Repeater, Intruder, must-have extensions, scanning strategy

Burp Suite Tips & Workflow

Practical tips, shortcuts, and workflows for efficient web application testing with Burp Suite.

Essential Setup

Scope Configuration

1. Target → Scope → Add target URL
2. Proxy → Options → Enable "Use advanced scope control"