Skip to content

Instantly share code, notes, and snippets.

@krcm0209
krcm0209 / security-vulnerability-scanner.md
Last active July 28, 2025 17:51
Claude Code Security Sub-agent

name: security-vulnerability-scanner description: "Use this agent PROACTIVELY when you need to review code for security vulnerabilities and potential exploits. Examples: Context: The user has just written authentication middleware and wants to ensure it's secure before deployment. user: 'I've implemented JWT authentication middleware. Can you review it for security issues?' assistant: 'I'll use the security-vulnerability-scanner agent to thoroughly analyze your authentication code for potential vulnerabilities.' Since the user is requesting security review of authentication code, use the security-vulnerability-scanner agent to identify potential vulnerabilities including authentication flaws, JWT implementation issues, and other OWASP Top 10 concerns. Context: The user has completed a user registration feature and wants security validation. user: 'Just finished the user registration endpoint with password handling and email validation' assistant: 'Let m

@krcm0209
krcm0209 / gist:618dad74ffdac7bf82452fabe1a27377
Created November 18, 2024 17:52
Simple bash API perf test
#!/bin/bash
# Variables
URL=""
BEARER_TOKEN=""
API_KEY=""
NUM_REQUESTS=100
# Array to store latencies
latencies=()
@krcm0209
krcm0209 / cleanup_git_branches.sh
Created March 10, 2022 17:13
Helper script to delete local git branches which no longer exist on the remote.
#!/bin/sh
git fetch -p
branches_with_gone_remote=$(
git for-each-ref --format '%(refname) %(upstream:track)' refs/heads |
awk '$2 == "[gone]" {sub("refs/heads/", "", $1); print $1}'
)
for branch in ${branches_with_gone_remote}
do
git branch -D $branch
@krcm0209
krcm0209 / README.md
Last active July 28, 2025 12:37
Using AdGuard DNS over HTTPS (DoH) on Windows 11

Why

You may want to use AdGuard's DNS over HTTPS[^2] service if you

  1. Want to make it harder for your ISP to know what websites you are requesting
  2. Want to block most traditional ads from your web browsing experience across your entire PC

Setup instructions

  1. Open PowerShell