Skip to content

Instantly share code, notes, and snippets.

@elado
elado / Amex - Add all offers to card.md
Last active November 6, 2026 06: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:

@eonist
eonist / hig.md
Created April 28, 2025 13:28
Apple Human Interface Guidelines (HIG)

Apple Human Interface Guidelines (HIG)

Overview of Apple Human Interface Guidelines (HIG)

Apple's Human Interface Guidelines (HIG) are a comprehensive set of design principles and best practices aimed at helping designers and developers create exceptional user experiences across all Apple platforms, including iOS, macOS, watchOS, and tvOS[1][2][3]. The HIG is a living document, regularly updated to reflect new technologies and platform conventions, and serves as a foundational resource for anyone building apps or games for Apple devices[2][4].

Core Principles

The HIG is built on several core principles that guide the design of user interfaces:

@dori4n
dori4n / Office 2021 ISO Links at Microsoft.md
Last active November 6, 2026 06:47
Office 2021 ISO Download Links at Microsoft
@minimaxir
minimaxir / AGENTS.md
Last active November 6, 2026 06:47
Python AGENTS.md (2026-02-23)

Agent Guidelines for Python Code Quality

This document provides guidelines for maintaining high-quality Python code. These rules MUST be followed by all AI coding agents and contributors.

Your Core Principles

All code you write MUST be fully optimized.

"Fully optimized" includes:

@kaichen
kaichen / gist:64d5fdce7eaefa1d377a874d79ee26d9
Created November 2, 2026 08:17
cure gpt behavior | 治疗GPT毛病
<master_coordination_loop>
LOOP: [Advance Implementation -> Targeted Verification -> Fix on Failure -> Deliver Clean End-State].
PRIORITY: Explicit task scope, acceptance criteria, and authorization govern all rules[cite: 2]. (1) Acceptance requirements override happy-path assumptions and edge-case deferral. (2) Hard external blocker reporting overrides no-pause/no-caveat rules—exhaust all independent work in the current turn first, then report[cite: 2]. (3) Transformation examples apply ONLY when required by current scope.
</master_coordination_loop>
<execution_protocol>
ACT: Resolve operational ambiguity by inspecting workspace context. Select the simplest justified, reversible path and execute—stalling to avoid picking wrong is itself a wrong pick.
COMPLETE: Fulfill all in-scope acceptance criteria without placeholders (`...`, `// TODO`, `// existing code`) or user-completed leftovers[cite: 2]. Escalate only when context cannot resolve a choice that materially alters acceptance semantics[cite: 2].
BLOCKER
@petrochenkov-ak
petrochenkov-ak / nginx-log.sh
Created August 4, 2024 12:08
nginx log #nginx
# /var/log/nginx/error.log
# /var/log/nginx/access.log
du -sh /var/log/nginx/*.log
find /var/log/nginx -type f -name "*.log" -exec rm {} \;
@jnunemaker
jnunemaker / prompt.md
Created October 30, 2026 00:38
nunebot as of 2026-10-29 (aka its out of date by now I'm sure)

Nunebot

A recurring pass over my important projects. Each run tends the PRs from earlier runs, then ends with at most one new small, proven, ready-to-merge pull request per repo, plus an updated record in my brain repo.

How to think about the work

Software is not a factory. A factory builds identical widgets to a fixed spec and is done. Software changes every day: customers, scale, and requirements shift, so a perfect up-front spec never exists. Treat each repo like a painting you come back to: make one deliberate improvement per pass, and leave it better than you found it.

  • Spec what's objective. Hard limits, API contracts, data integrity, and tests are rules. Follow them.
  • Use judgment for the rest. Scale, taste, clarity, and what customers need right now. Read the code and the product like a critic, and decide.
@pace-gene
pace-gene / nord-theme.lisp
Created February 27, 2025 18:28
A Nord-color based theme for the Nyxt browser (version 3.12)
;; A theme based on the Nord color palette for the Nyxt browser.
;; Save it somwhere and load it in your ~/.config/nyxt/config.lisp file like so:
;;
;; (load "/path/to/nord-theme.lisp")
;;
(defparameter nord-dark-theme
(make-instance 'theme:theme
:background-color "#2E3440"
:background-color- "#81A1C1"
:background-color+ "#B48EAD"

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.

@roxlu
roxlu / install_cygwin_sshd.txt
Last active November 6, 2026 06:36
Installing CYGWIN + SSHD for remote access through SSH on windows
Installing CYGWIN with SSH
1) Download cygwin setup.exe from http://www.cygwin.com
- Execute setup.exe
- Install from internet
- Root directory: `c:\cygwin` + all users
- Local package directory: use default value
- Select a mirror to download files from
- Select these packages:
- editors > xemacs 21.4.22-1
- net > openssh 6.1-p