Skip to content

Instantly share code, notes, and snippets.

View mamachanko's full-sized avatar
🔧
clank clank ...

Max Brauer mamachanko

🔧
clank clank ...
View GitHub Profile
@mattpocock
mattpocock / README.md
Created July 7, 2026 11:51
agent-proxy — a zero-dep proxy that shows the bloat in Claude Code's requests (ranked tool table + full readable Markdown of every request)

agent-proxy — see the bloat in Claude Code's requests

A zero-dependency logging proxy that sits between Claude Code and the Anthropic API. It forwards every request untouched, streams the reply straight back (so the CLI is unaffected), and writes a readable Markdown document for each request — led by a ranked table of what is eating your context.

Run it

name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@pivotaljohn
pivotaljohn / merge.lib.yaml
Created August 30, 2022 16:43
Deep merge of dictionaries
#@ load("@ytt:yaml", "yaml")
#@ load("@ytt:overlay", "overlay")
#@ load("@ytt:struct", "struct")
#@ def _doc(map):
--- #@ map
#@ end
---
#@ def _missing_ok(map):
@mamachanko
mamachanko / README.md
Last active August 8, 2022 07:58
kctrl edit

kctrl cannot update package installations interactively. This helps. Needs gum.

@muesli
muesli / .golangci.yml
Created January 8, 2022 07:00
Extensive golangci-lint config
run:
tests: false
issues:
include:
- EXC0001
- EXC0005
- EXC0011
- EXC0012
- EXC0013

Cheetsheet for Luan's Tmux config

Disclaimer: this is gds' mental model of how tmux with Luan's config works. While they try to use terminology consistent with the rest of the world, they could easily be wrong. Corrections welcome.

Commands that work "normally"

Most of the time in tmux, you're in normal mode. When you type things, they go

@ojhughes
ojhughes / bootstrap-k8s-spring-project.md
Last active January 25, 2024 21:51
Bootstrapping a Spring project for deployment on Kubernetes with a few commands.

This is my current "dev workflow" for quickly bootstrapping an Spring app on a Kubernetes cluster. The general approach is polyglot but you will need to use something like https://buildpacks.io instead of Jib to support non-JVM projects

This example uses skaffold and kapp so you will need to install from https://skaffold.dev/docs/install/ & https://k14s.io/ You will also need kubectl installed and a Kubernetes cluster targetted. You can use Minikube, Kind or K3S for lightweight, local Kubernetes environment

export APPNAME=bootstrap-k8s
export DOCKER_REGISTRY=ojhughes
@mamachanko
mamachanko / README.md
Last active January 10, 2017 08:31
List DriveNow car coordinates for Berlin

DriveNow car coordinates

This is a script to return all DriveNow car locations for Berlin, Germany. It is easily changed to work with any other city DriveNow provides service in.

You need a DriveNow API key and auth token. It's easiest to get your's by logging into the DriveNow website and using your browser's dev tools.

Usage

@marszall87
marszall87 / docker-compose-install.sh
Created September 25, 2015 13:14
Simple script for installing latest Docker Compose on CoreOS >= 717.0.0
#!/bin/bash
mkdir -p /opt/bin
curl -L `curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(contains("Linux") and contains("x86_64"))'` > /opt/bin/docker-compose
chmod +x /opt/bin/docker-compose
@denji
denji / golang-tls.md
Last active April 14, 2026 13:12 — forked from spikebike/client.go
Simple Golang HTTPS/TLS Examples
Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)