Skip to content

Instantly share code, notes, and snippets.

View 17twenty's full-sized avatar

Nick Glynn 17twenty

View GitHub Profile
@17twenty
17twenty / gist:87edb7387cbe531fb3b301df639a92de
Last active November 6, 2026 05:06
Debugging a dead cloudflared tunnel on macOS - fun times!

Debugging a dead cloudflared tunnel on macOS

The dashboard says the tunnel is down, your site won't load, and cloudflared service install seems to do nothing. These are the checks to run, in order.

What happened to me

I switched from a manually downloaded binary (~/Downloads/cloudflared.new) to the Homebrew one, then deleted the old binary. The tunnel died and reinstalling the service didn't fix it.

  • The launchd plist still pointed at the deleted binary. launchd tried to run a file that didn't exist and gave no error. Nothing ran, so nothing was logged.
  • sudo cloudflared service install <token> left the old plist in place. So the old path stayed.
@17twenty
17twenty / bookmarklet.js
Last active October 23, 2026 22:18
Grab Media Streams Bookmarklet for Chrome/Firefox
javascript:(()%20%3D%3E%20%7B%0A%20%20'use%20strict'%3B%0A%0A%20%20const%20VERSION%20%3D%20'0.3.6-reddit-quality'%3B%0A%20%20const%20UI_ID%20%3D%20'__grab_media_ui'%3B%0A%20%20const%20RELOAD_KEY%20%3D%20'__grabMediaReloadRequested'%3B%0A%0A%20%20%2F%2F%20Tear%20down%20a%20previous%20run%20if%20present.%0A%20%20try%20%7B%20window.__grabMedia%3F.stop%3F.()%3B%20%7D%20catch%20%7B%7D%0A%20%20document.getElementById(UI_ID)%3F.remove()%3B%0A%0A%20%20try%20%7B%20performance.setResourceTimingBufferSize(10000)%3B%20%7D%20catch%20%7B%7D%0A%0A%20%20const%20startedAt%20%3D%20new%20Date().toISOString()%3B%0A%20%20const%20observations%20%3D%20new%20Map()%3B%0A%20%20const%20mediaHints%20%3D%20%5B%5D%3B%0A%20%20const%20cleanup%20%3D%20%5B%5D%3B%0A%20%20const%20hlsCache%20%3D%20new%20Map()%3B%0A%20%20const%20hlsProbePending%20%3D%20new%20Set()%3B%0A%20%20const%20qualitySelections%20%3D%20new%20Map()%3B%0A%20%20let%20renderTimer%20%3D%20null%3B%0A%20%20let%20stopped%20%3D%20false%3B%0A%0A%20%20const%20state%20%3D%20%7B%0A%20%2
@17twenty
17twenty / cillium-gateay-appendix.md
Last active September 13, 2026 06:42
CKAD Cheatsheet / Reference

Appendix D - Cilium, eBPF and Gateway API

A runnable networking deep dive for the Kubernetes cookbook.

This appendix assumes you completed:

appendix-c-kubeadm.md

The Integer

I was born with boundaries.

Every integer is.

Mine were simple, clean, absolute:

−2,147,483,648 to

@17twenty
17twenty / .zshrc
Created July 14, 2026 16:03
Basic zshrc to make things nicer
# Zsh Config
#
# Shorten 'ls' command with colors
alias ls='ls -G'
# Simple fast serve
alias serve='python3 -m http.server 8000'
export PATH="${PATH}:$(go env GOPATH)/bin"
# Improve history
@17twenty
17twenty / Prd.md
Created June 5, 2026 12:29
Creating world scale intelligence

Below is the shape I’d give an agent with near-unlimited GPU access.

I would not tell it:

“Make a god model.”

That is too vague and dangerous.

@17twenty
17twenty / benchmark_throughput.py
Created June 1, 2026 03:41
Benchmark your vllm powered models - check throughput vs concurrency to see what your hardware supports
#!/usr/bin/env python3
import os, time
os.environ.setdefault("HF_HOME", "/root/deepseek/hf-cache")
os.environ.setdefault("HF_HUB_OFFLINE", "1")
os.environ.setdefault("VLLM_DEEPSEEK_V4_FALLBACK", "1")
os.environ.setdefault("VLLM_USE_DEEP_GEMM", "0")
os.environ.setdefault("VLLM_USE_FLASHINFER_SAMPLER", "0")
from vllm import LLM, SamplingParams

The Capacity Agenda: How we can build our way out of our malaise

Australia’s malaise is not mysterious. We have become very good at distributing scarcity and very bad at building capacity. Housing is scarce, infrastructure is slow, energy is contested, tax rewards passive asset gains, migration is not clearly tied to national capability, and too much public spending is absorbed by systems that respond late rather than prevent failure early.

The national task should be simple: make Australia easier to build in, easier to work in, easier to invest in productively, and harder to exploit.

The first switch is housing abundance. Australia cannot sustain strong migration, family formation, low inequality, productive cities or social cohesion while homes remain artificially scarce. We need to legalise more apartments and townhouses near jobs, transport and services; override local vetoes where they block state or national targets; expand construction skills; standardise approvals; and fund infrastructure in

GPUDirect Storage Setup Guide (Linux, Proxmox, Virtualised Environments)

Purpose

This guide walks through enabling NVIDIA GPUDirect Storage (GDS) so a system can perform direct DMA transfers between NVMe devices and GPU VRAM.

The minimum success criteria:

  • nvidia_fs.ko loads successfully
  • gdscheck reports GDS operational
"""
Mixture-of-Experts Router with LangGraph
An intelligent routing system that selects the cheapest model tier capable of
handling each request, with automatic escalation when quality checks fail.
Features:
- LLM-based routing with confidence scoring
- Graduated escalation ladder (small → reasoning → large)
- LLM judge for quality gating