Skip to content

Instantly share code, notes, and snippets.

@peteryates
peteryates / guide.md
Last active August 31, 2026 05:17
How to stop adverts appearing on your Samsung TV

I'm getting adverts in my TV's UI, help!

Samsung's otherwise excellent 2016 range of UHD TVs received an update that added advertisements to the UI. This has been complained about at great length on Samsung's forums and repeatedly, Samsung have refused to add an option to remove them.

The ads interrupt the clean UI of the TV and are invasive. Here's an example of how they look:

one two

This guide was originally posted on Samsung's TV forums but unfortunately, that site is a super-slow and barely accessible unusable mess.

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.

@derekchiang
derekchiang / app.html
Last active August 31, 2026 04:58 — forked from bellbind/app.html
[electron]Use electron as a Web Server
<!doctype html>
<html><head><script src="app.js"></script></head><body></body></html>
@tsohr
tsohr / gist:5711945
Created June 5, 2013 06:15
Android activity manager "am" command help
adb shell am
usage: am [subcommand] [options]
usage: am start [-D] [-W] [-P <FILE>] [--start-profiler <FILE>]
[--R COUNT] [-S] [--opengl-trace] <INTENT>
am startservice <INTENT>
am force-stop <PACKAGE>
am kill <PACKAGE>
am kill-all
am broadcast <INTENT>
am instrument [-r] [-e <NAME> <VALUE>] [-p <FILE>] [-w]
@vinhnx
vinhnx / config
Created March 11, 2026 06:30 — forked from jamesgecko/config
Ghostty - Add a focus rectangle around the active pane
unfocused-split-opacity = 1
custom-shader=~/.config/ghostty/focus-pane.glsl
@fnky
fnky / ANSI.md
Last active August 31, 2026 04:40
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@DoubleGremlin181
DoubleGremlin181 / Common LeetCode Patterns.MD
Last active August 31, 2026 04:37
Coding Interview — Common LeetCode Patterns Cheat Sheet

Coding Interview — Common LeetCode Patterns Cheat Sheet

All 17 core coding interview patterns. Sorted by commonality × difficulty — most frequent and easiest patterns first, rarest and hardest at the bottom. For each: how to spot it, the core idea, a clean code example, and LeetCode practice problems.


1. Two Pointers

Frequency: ★★★★★ | Difficulty: Easy