Skip to content

Instantly share code, notes, and snippets.

@terraboops
terraboops / phish.js
Created November 1, 2022 05:59
knowbe4 google script
// Update the email address below
// Schedule to run every 30 minutes at https://script.google.com/
function phish() {
const threads = GmailApp.search("newer_than:30m");
const totalSpammed = 0;
threads.forEach((thread) => {
thread.getMessages().forEach((message) => {
if(message.getHeader("X-PHISHTEST") !== "") {
thread.moveToSpam();
totalSpammed++;
@terraboops
terraboops / test-tc-veth-conflict.sh
Created November 19, 2025 07:47
Test: tc qdisc on both sides of veth pair (host vs pod namespace) - Proves AWS VPC CNI and pod-side rate limiting don't conflict
#!/bin/bash
# Test: Can we attach tc qdisc to pod-side of veth while AWS VPC CNI uses host-side?
# Run with: sudo bash test-tc-veth-conflict.sh
set -e
NAMESPACE="test-pod-tc"
VETH_HOST="veth-host-test"
VETH_POD="veth-pod-test"
@terraboops
terraboops / 0xstatus.sh
Last active February 16, 2026 22:56
0xSTATUS — a cute and nerdy statusline for Claude Code
#!/usr/bin/env bash
# ╔════════════════════════════════════════════════════════════╗
# ║ 0xSTATUS v1.2 // cute and nerdy statusline for Claude ║
# ╚════════════════════════════════════════════════════════════╝
#
# Requires: jq
# Optional: kubectl (k8s context), git (branch)
# Works with any modern monospace font (no Nerd Font required)
#
# Layout: