Skip to content

Instantly share code, notes, and snippets.

@krisbolton
krisbolton / fix-USB-showing-up-as-two-partitions.md
Last active May 15, 2026 23:03
How to fix a USB drive showing up as two drives (fragmented into multiple partitions) on Windows

How to fix a USB drive showing up as two drives (fragmented into multiple partitions) on Windows:

  1. Hold the Windows key and press X, select PowerShell (Admin), select Yes to the pop-up. You can also use Command Prompt.
  2. In the Powershell interface type diskpart to enter the disk partition tool.
  3. Type list disk to see all disks listed.
  4. Select the USB drive by typing select disk [NUMBER]. Be careful to select the correct drive.
  5. Type clean. An error will occur if you have the drive folder open, close the window and repeat the command if this happens.
  6. Type create partition primary.
  7. Type format fs=ntfs quick to format the drive (you can also choose to set fs=fat32).
  8. Type active.
@thoroc
thoroc / agent-stars.md
Created March 18, 2026 14:00
Agentic harness ranking - based on github stars
@jedi4ever
jedi4ever / cs.sh
Last active May 15, 2026 23:01
Simple script to run claude headless without the -p (to avoid extra costs)
#!/usr/bin/env bash
# Usage: ./cs "your prompt"
# Runs Claude headlessly, suppresses the TUI, prints Claude's final reply on stdout.
set -uo pipefail
PROMPT="$*"
REPLY_FILE=$(mktemp)
SESSION_ID=$(uuidgen | tr 'A-Z' 'a-z')
ENC_CWD=$(pwd | sed 's|/|-|g')

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.

@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active May 15, 2026 22:50
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitH
@ehsan18t
ehsan18t / processor-boost-mode.md
Last active May 15, 2026 22:50
Enable Processor Boost Mode Control in Advanced Power Settings

Enable Processor Boost Mode Control in Windows

Disable Turbo Boost to Reduce Power Consumption and Heat

Why Do We Need It?

If your laptop’s CPU is running very hot and you’ve tried to undervolt it, you’ve probably discovered there’s no easy way to do so—especially on laptops whose BIOS doesn’t expose those controls. I ran into the same issue with my Ryzen 7 5800H, despite numerous attempts, I couldn’t undervolt because the firmware simply wouldn’t allow it. While it may seem drastic, disabling Turbo Boost is one workaround—and you might be surprised how little real-world performance you lose by turning it off.

@Klerith
Klerith / instalaciones.md
Last active May 15, 2026 22:45
Instalaciones recomendadas - Curso de Angular de cero a experto
@LayZeeDK
LayZeeDK / opencode-windows-arm64-install.md
Last active May 15, 2026 22:40
Installing opencode CLI on Windows arm64

Installing opencode CLI on Windows arm64

Problem: opencode does not ship a windows-arm64 binary (issue #4340). The npm wrapper detects arm64 and fails with:

It seems that your package manager failed to install the right version of the opencode CLI for your platform.
You can try manually installing "opencode-windows-arm64" package

Solution: Force-install the x64 binary and set OPENCODE_BIN_PATH so the Node.js wrapper uses it directly. Windows 11 arm64 runs x86_64 binaries natively via its built-in emulation layer.

@ixahmedxi
ixahmedxi / component.tsx
Created September 25, 2023 23:23
React resizable panel
import { AnimatePresence, motion } from "framer-motion";
import { PropsWithChildren } from "react";
import useResizeObserver from "use-resize-observer";
const ignoreCircularReferences = () => {
const seen = new WeakSet();
return (key: string, value: Record<string, unknown>) => {
if (key.startsWith("_")) return;
if (typeof value === "object" && value !== null) {
if (seen.has(value)) return;