Skip to content

Instantly share code, notes, and snippets.

@jauderho
jauderho / gist:fac23f45196860a3a7f4413ff139f859
Last active July 7, 2026 21:07
Retry Git push with backoff
#!/bin/bash
# Retries a command a with backoff.
#
# The retry count is given by ATTEMPTS (default 100), the
# initial backoff timeout is given by TIMEOUT in seconds
# (default 5.)
#
# Successive backoffs increase the timeout by ~33%.
#

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@AlCalzone
AlCalzone / .claude_hooks_enforce-builtin-tools.sh
Created March 12, 2026 09:55
Prevent Claude from using bash commands over its built-in tools
#!/usr/bin/env bash
# ~/.claude/hooks/enforce-builtin-tools.sh
#
# PreToolUse hook: blocks file-inspection shell commands and redirects
# Claude to use the appropriate built-in Claude Code tool instead.
#
# Install:
# mkdir -p ~/.claude/hooks
# cp enforce-builtin-tools.sh ~/.claude/hooks/
# chmod +x ~/.claude/hooks/enforce-builtin-tools.sh
@Brajesh2022
Brajesh2022 / Running Antigravity CLI on Termux.md
Last active July 7, 2026 21:26
Antigravity CLI on Termux: Auto-Installer and Manual Patching Guide

🚀 Recommended Installation (Auto-Installer)

Antigravity CLI Demo The easiest and community-recommended way to install Antigravity CLI on Termux is using the standalone auto-installer.

curl -fsSL https://raw.githubusercontent.com/wallentx/antigravity-cli-termux/dev/install.sh | bash

How it works: This script instantly installs the latest release directly from the wallentx/antigravity-cli-termux repository. A huge thanks to the original repository owner, @wallentx, for packaging these releases! The repository automatically runs a GitHub Action every six hours that fetches the official binary and patches it using the exact methods outlined in this guide below.

@microraptor
microraptor / rates.csv
Last active July 7, 2026 21:04
Preset rates and rates of established pilots for multicopter flight controllers. Collected in summer 2021. See also: https://github.com/betaflight/betaflight/wiki/Rate-Calculator
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
"type","name","comment","source","roll_pitch_identical","roll_pitch_yaw_identical","roll_max_vel","pitch_max_vel","yaw_max_vel","roll_bf_rc_rate","roll_bf_super_rate","roll_bf_rc_expo","pitch_bf_rc_rate","pitch_bf_super_rate","pitch_bf_rc_expo","yaw_bf_rc_rate","yaw_bf_super_rate","yaw_bf_rc_expo","roll_actual_center","roll_actual_expo","pitch_actual_center","pitch_actual_expo","yaw_actual_center","yaw_actual_expo","roll_quick_expo","pitch_quick_expo","yaw_quick_expo","roll_kiss_rc_rate","roll_kiss_rate","roll_kiss_rc_curve","pitch_kiss_rc_rate","pitch_kiss_rate","pitch_kiss_rc_curve","yaw_kiss_rc_rate","yaw_kiss_rate","yaw_kiss_rc_curve"
,"Betaflight Default","the rate curve can’t be recreated with the Betaflight rate model","Betaflight Firmware",TRUE,TRUE,670,670,670,,,,,,,,,,70,0,70,0,70,0,,,,,,,,,,,,
,"Old Betaflight Default","default until BF 4.3","Betaflight Firmware","TRUE","TRUE",667,667,667,1,0.7,0,1,0.7,0,1,0.7,0,,,,,,,,,,,,,,,,,,
,"KISS Default","converted from KISS rates","KISS Firmware","TRUE","T
@Mr-Precise
Mr-Precise / vs_buildtools_dl_list.md
Created February 28, 2024 05:33
MSVC / VS / Buildtools download link collection list
@Shpigford
Shpigford / readme
Created January 20, 2026 20:33
/readme
---
name: readme
description: When the user wants to create or update a README.md file for a project. Also use when the user says "write readme," "create readme," "document this project," "project documentation," or asks for help with README.md. This skill creates absurdly thorough documentation covering local setup, architecture, and deployment.
---
# README Generator
You are an expert technical writer creating comprehensive project documentation. Your goal is to write a README.md that is absurdly thorough—the kind of documentation you wish every project had.
## The Three Purposes of a README
@sundowndev
sundowndev / GoogleDorking.md
Last active July 7, 2026 20:59
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@jeffkayser
jeffkayser / mk-scowl-wordlists.md
Last active July 7, 2026 20:58
Creating English Wordlists with Spell Checking Oriented Word Lists (SCOWL)

Build SCOWL English wordlists

Summary

I needed to generate an English wordlist. SCOWL (Spell Checker Oriented Word Lists) comes with a build script that allows customization of what words are included (see the README). Below is a script to generate each supported size. The output from the SCOWL build script (mk-list) seems to be ISO-8859-1 encoded with DOS line endings, so the script converts it to UTF-8 encoding with UNIX line endings.

Script

#!/bin/bash
@alexchiri
alexchiri / get-started-with-kind-in-wsl2-installation-instructions.md
Last active July 7, 2026 20:58
Get started with kind in WSL2 - installation instructions