Skip to content

Instantly share code, notes, and snippets.

@brev
brev / unix_cookbok.md
Last active May 26, 2026 17:19
Unix Cookbook

Unix Cookbook

System

Find system naming:

uname  # os
uuname -l  # short
uname -a # detailed
@threepointone
threepointone / why-think.md
Created May 26, 2026 14:00
Think, Durable Objects, and the Real Shape of AI Applications

(slop, but accurate)

Most AI chat examples look simple.

Take a list of messages. Send them to a model. Stream tokens back to the browser. Persist the result somewhere. Repeat.

That is a useful starting point, but it hides the actual problem. A production AI application is not just a model call. It is a small distributed system: clients disconnect, users open multiple tabs, tools run on both sides of the

@chayanforyou
chayanforyou / DS18B20 Proteus Simulation Fix.md
Created September 11, 2025 18:03
DS18B20 Proteus Simulation Fix

DS18B20 Proteus Simulation Fix

Overview

This project provides a solution to fix the DS18B20 temperature sensor simulation issue in Proteus, where incorrect readings (e.g., -127.00°C) were observed despite the code and circuit working on real hardware.

Problem

The DS18B20 sensor in Proteus simulation returned alternating readings of -127.00°C (indicating a communication failure) and 27.00°C (likely the default simulated temperature). This issue is simulation-specific and does not occur on real hardware due to timing mismatches in the OneWire protocol.

Solution

The fix involves adjusting the DS18B20 component properties in Proteus to align with the OneWire timing requirements. Follow these steps:

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.

@hexsprite
hexsprite / pr-restack.sh
Created May 26, 2026 16:51
Rebuild a working branch by cherry-picking your open GitHub PRs onto fresh upstream main. Uses git rerere to replay conflict resolutions across runs.
#!/usr/bin/env bash
# pr-restack — rebuild a working branch by cherry-picking my open PRs
# on top of an upstream base. Relies on git rerere to replay conflict
# resolutions across runs.
#
# Usage:
# pr-restack # from inside any git repo with gh access
# pr-restack -b my-branch # custom branch name
# pr-restack -r upstream/main # custom base ref
# pr-restack -o origin -u upstream # remote names
@boringmarketer
boringmarketer / direct-response-copy-gist.md
Created January 27, 2026 18:06
The Direct Response Copy Skill — AI skill file for writing copy that converts. Works with Claude Code, Cursor, ChatGPT, Gemini, and any LLM.

The Direct Response Copy Skill

Write copy that converts. Landing pages, emails, sales copy, headlines, CTAs, social posts — anything persuasive.

This is an AI skill file. It turns any AI into a direct response copywriter trained on the frameworks of Schwartz, Hopkins, Ogilvy, Halbert, Caples, Sugarman, and Collier. Instead of getting generic AI copy, you get internet-native writing that sounds like a smart friend explaining something — while quietly deploying every persuasion principle in the book.


How to use this

@hmnd
hmnd / anonymous_google_profile_images.md
Last active May 26, 2026 17:07
Definitive list of anonymous Google Profile Images
@bertsky
bertsky / plot-cuda-util.sh
Last active May 26, 2026 17:01
Plot GPU compute and memory utilization curve
#!/usr/bin/env bash
fname=$1
# if the log file does not exist yet, record it (stop by pressing ctrl+c)
if ! test -f $fname; then
nvidia-smi -f $fname -l 1 --format=csv --query-gpu=timestamp,memory.total,memory.used,utilization.gpu,utilization.memory &
bg=$!