Discover gists · GitHub
Skip to content

Instantly share code, notes, and snippets.

@fsLeg
fsLeg / get-crates.py
Last active June 25, 2026 16:57
This is a helper script for packaging Rust programs using SlackBuilds. It can generate links to crates, their MD5 hashes, fill a template .info file with crates' links and checksums and vendor pre-downloaded crates for offline building with Cargo
@echo off
REM // This batch will help frustrated AMD Ryzen user for being unable to normally use adb fastboot from Windows OS
REM // I found this script on forum, I don't know who is the original creator of this registry hack, thank you very much
REM // Credit belongs to the original creator
REM // Just simply Run as Administrator
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f
@jctosta
jctosta / screen_cheatsheet.markdown
Last active June 25, 2026 16:55
Screen Cheatsheet

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r

HP LaserJet P1102 Drivers for macOS Sequoia

This instructions provides a solution for installing HP LaserJet P1102 drivers on macOS Sequoia (15.0+). The official HP drivers don't install on the latest macOS versions, but with a simple modification to bypass the operating system version check, you can get your printer working again.

Supported Printer Models

  • HP LaserJet P1102
  • HP LaserJet Pro P1102
  • HP LaserJet Pro P1102w

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.

<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/jquery-1.9.1.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/isRockFx.js"></script>
<script>
$(function () {
@joematthews
joematthews / humble-pi.md
Last active June 25, 2026 16:40
Humble Pi — local agentic coding on minimal hardware

Humble Pi — local agentic coding on minimal hardware

A coding agent that runs entirely on your own machine. No API keys, no cloud, works offline.

pi is the agent you talk to. It runs against a local llama.cpp server hosting Google Gemma 4 (the unsloth builds).

Pick a model by how much memory you have:

Model unsloth repo Download VRAM Start Max
@brunolemos
brunolemos / README.md
Last active June 25, 2026 16:37
Codex Desktop feature flag runtime overrides

Codex Desktop feature flag overrides

Runtime-only scripts for experimenting with hidden Codex Desktop UI feature flags. They launch Codex with a local Chrome DevTools Protocol port and inject renderer feature overrides. They do not modify Codex.app.

Run

First quit Codex Desktop. Only one desktop instance can run at a time, and the launcher needs to reopen it with the override hook.

Option A: ask the codex CLI to run it for you. Paste this into Terminal: