Skip to content

Instantly share code, notes, and snippets.

@MangaD
MangaD / terminal_user_interfaces.md
Created August 3, 2026 12:12
The Complete Guide to Terminal User Interfaces (TUIs)

The Complete Guide to Terminal User Interfaces (TUIs)

CC0

Disclaimer: ChatGPT generated document.

A TUI (Terminal User Interface) is an interactive user interface rendered inside a terminal. It occupies the middle ground between a traditional command-line interface (CLI) and a graphical user interface (GUI): keyboard-centric, script-friendly and remote-friendly like a CLI, but with windows/panels, menus, tables, forms, dialogs, mouse support, colors, scrolling, and sometimes even graphics.

Modern TUIs have undergone something of a renaissance. Rust, Go, Python, C++, JavaScript, .NET, and other ecosystems now have sophisticated frameworks, while modern terminals support Unicode, 24-bit color, hyperlinks, mouse events, advanced keyboard protocols, and—in some terminals—actual images.

@conradcaffier03
conradcaffier03 / give-claude-eyes.md
Last active October 16, 2026 21:25
Give Claude Eyes — watch any video frame-by-frame, 100% local (buildwith.conrad)

Give Claude Eyes — watch any video frame-by-frame, 100% local (buildwith.conrad)

🛠️ Want the rest of my tools? Grab them at get.caffier-agency.com/start

👁️ Give Claude Eyes — watch any video frame-by-frame

Freebie for the EYES keyword (reel-47, "Give Claude eyes"). Deliver as a public GitHub Gist — numbered steps the user can run today, not a raw link. Value-first: by the end you have a Claude Code skill that sees a video (every cut, every on-screen detail), not just reads its transcript.

@SChernykh
SChernykh / RandomX_v2_results.md
Last active October 16, 2026 21:20
RandomX v2 testing
  • RandomX v1 hash: 4194304 VM instructions + 262144 AES = 4456448 total ops
  • RandomX v2 hash: 6291456 VM instructions + 524288 AES = 6815744 total ops (+52.9%)

RandomX v2 includes the following changes:

  • Program size increased from 256 to 384
  • CFROUND is tweaked to change the rounding 16 times less often
  • Group F and group E register mix is done using 16 AES operations (the extra 262144 AES ops come from this change)
  • Dataset prefetch is 2 iterations ahead instead of 1

RandomX v2 hash is 1.5 times "heavier" than RandomX v1 hash, so hashrate comparison is only for the reference. The real metric is work per Joule (the last two columns).

@sathishshan
sathishshan / youtube-dl.txt
Last active October 16, 2026 21:07
Download youtube private or member videos
#single video
youtube-dl --cookies youtube.com_cookies.txt "URL"
#playlist
youtube-dl --yes-playlist --cookies youtube.com_cookies.txt "URL"
You can use: --playlist-start, --playlist-end, --playlist-reverse or --playlist-items to achieve this goal.
#Note: cookie should be in Netscape format
@elado
elado / Amex - Add all offers to card.md
Last active October 16, 2026 20:57
American Express / Amex - Add all offers to card at once (bookmarklet)

American Express - Add all offers to card at once

If you own an AMEX card, you can add a bunch of offers to the card in this link: https://global.americanexpress.com/offers/eligible

There are many offers, and they change all the time. Instead of clicking "Add to card" repeatedly, I created this bookmarklet.

In Chrome, add a new bookmark (right click on bookmarks bar -> "Add Page...") with the following URL:

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.

@daldegam
daldegam / gist:f91208fe7286f4fe5cca684e5227f5ab
Created October 5, 2021 10:38
How to show the hash for a file (MACOS)
https://www.modmy.com/how-verify-file-hashes-macos
How to show the hash for a file
If you want to verify a hash visually – that is, just see the hash and check if it's the same – macOS provides command line-based tools to show hashes for all sorts of hashing algorithms.
To show a SHA256 hash:
shasum -a 256 [filenames]
To show a SHA1 hash:
@defron
defron / firefox-wayland-dropped-video-frames.md
Last active October 16, 2026 20:47
Fix issue with Firefox Wayland Dropped Frames on Youtube Videos

I was experiencing a significant amount of dropped frames during video playback after switching to Wayland and finally was able to find a fix that worked for me

During youtube playback I would experience 10+ frames dropped all at once, causing a noticable skip.

Saw a few people having similar issues:

https://askubuntu.com/questions/1520102/why-do-i-get-so-many-frame-drops-on-wayland-with-youtube-playback

https://forum.manjaro.org/t/my-browser-drops-a-bunch-of-frames-while-playing-youtube-videos/168839

@dcode
dcode / import_dod_certs_mac.sh
Last active October 16, 2026 20:42
Install and trust DoD CA certificates on Mac OS X. Tested on Catalina and Mojave. *NOTE*: This should also enable CAC if you didn't override the system drivers.
#!/bin/bash
set -eu -o pipefail
export CERT_URL='https://dl.dod.cyber.mil/wp-content/uploads/pki-pke/zip/unclass-certificates_pkcs7_DoD.zip'
# Download & Extract DoD root certificates
cd ~/Downloads/ || exit 1
/usr/bin/curl -LOJ "${CERT_URL}"
@morrolinux
morrolinux / instructions.md
Last active October 16, 2026 20:40
FIrefox - Vertical tab bar with auto hide

What to expect

Graphical aspect may vary depending on your choices in following the instructions below, but the end result should look something like this:

immagine

Enable Firefox features