Skip to content

Instantly share code, notes, and snippets.

image

Cavalry on Linux Summary from Several Resources (via Wine) — Based on my Elementary OS Distribution

Tested on Wine 11 with Elementary OS 8.1. Adapted from community guide, including fixes for the Canva-based sign-in issue.

0. Dependencies

Winetricks needs a dialog tool to show its GUI. Install one before running it:

@chrismdp
chrismdp / skill.md
Created January 16, 2026 11:36
Today in Claude Code - A skill to generate daily summaries of your Claude Code activity
name today-in-claude-code
description Generate a summary of today's Claude Code activity including token usage and tasks accomplished.

Today in Claude Code

Generate a comprehensive daily summary of Claude Code usage.

Process

@paragdangui
paragdangui / gist:5ba45f2ec7fc374d891dcb2ad0924a31
Created June 27, 2026 16:54
Codex Reset Expiration info script
PYTHON_BIN=""
for candidate in /opt/homebrew/bin/python3 /usr/local/bin/python3 /usr/bin/python3 python3; do
if command -v "$candidate" >/dev/null 2>&1; then
PYTHON_BIN="$(command -v "$candidate")"
break
fi
done
if [[ -z "$PYTHON_BIN" ]]; then
@avoidik
avoidik / README.md
Last active July 26, 2026 22:18
Compile rsync static on alpine

Prepare environment

docker run -i -t --rm -v ${PWD}:/mnt \
  -e PIP_BREAK_SYSTEM_PACKAGES=1 \
  -e PIP_ROOT_USER_ACTION=ignore \
  -e PIP_NO_WARN_SCRIPT_LOCATION=0 \
  --name=buildenv alpine:latest \
    sh -c 'apk add bash; bash'
@adammyhre
adammyhre / FogObstacle.cs
Created July 26, 2026 05:12
Interactive Ground Fog for Unity URP
using UnityEngine;
public class FogObstacle : MonoBehaviour {
[SerializeField] float radius = 1.5f;
public float Radius => radius;
}

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.

@ParkWardRR
ParkWardRR / macos-force-spatial-audio-external-dac.md
Last active July 26, 2026 22:05
How to Force macOS Spatial Audio on Any DAC or Headphones

Force macOS Spatial Audio Rendering for Generic Headphones & USB DACs

Summary: macOS normally restricts system-level Spatial Audio (HRTF processing of 5.1/7.1 content) to AirPods and built-in speakers. By creating a specific Aggregate Device configuration, you can trick the OS into performing the binaural rendering and routing the processed audio to any USB DAC or wired headphone output. Result Surround sound content played through standard stereo headphones sounds directional/atmospheric rather than just left/right.


Glossary

Term Definition
@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active July 26, 2026 21:52
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
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: