Skip to content

Instantly share code, notes, and snippets.

@naythanN
naythanN / .zsh
Created August 29, 2023 11:06
zsh completion
bindkey ";5C" forward-word
bindkey ";5D" backward-word
bindkey '^H' backward-kill-word
bindkey '5~' kill-word
zstyle ':completion:*' menu select=0
zstyle ':completion:*' _extensions completer _complete _approximate matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*:menu-select:*' completer _complete matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*:options:*' completer _complete matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*:rm:*' completer _complete
zstyle ':completion:*' use-cache on
@dgtest-selecthub
dgtest-selecthub / TFD-Ultimate-Assistant-quickstart-v1.md
Created November 23, 2026 07:18 — forked from marcuschen-lab05p5/TFD-Ultimate-Assistant-quickstart-v1.md
Tfd Ultimate Assistant — Windows x64 Portable Release & Configuration Notes

Tfd Ultimate Assistant — Windows 10/11 x64 Setup & Configuration Guide

Quickstart & Runtime Notes

  1. Download the portable .zip release package from GitHub Releases.
  2. Extract all files into a dedicated directory and keep config/settings.json next to the binary.
  3. Review SHA256SUMS.txt and customize parameters in config/settings.json.
@VictorTaelin
VictorTaelin / itt-coc.ts
Last active November 23, 2026 10:39
ITT-Flavored Calculus of Constructions Type Checker
// A nano dependent type-checker featuring inductive types via self encodings.
// All computation rules are justified by interaction combinator semantics,
// resulting in major simplifications and improvements over old Kind-Core.
// Specifically, computable annotations (ANNs) and their counterpart (ANN
// binders) and a new self encoding based on equality (rather than dependent
// motives) greatly reduce code size. A more complete file, including
// superpositions (for optimal unification) is available on the
// Interaction-Type-Theory repository.
// Credits also to Franchu and T6 for insights.
@johnchandlerburnham
johnchandlerburnham / ATaxonomyOfSelfTypes.md
Last active November 23, 2026 10:39
A Taxonomy of Self Types

A Taxonomy of Self-Types

Part I: Introduction to Self-Types

Datatypes in the Formality programming language are built out of an unusual structure: the self-type. Roughly speaking, a self-type is a type that can depend or be a proposition on it's own value. For instance, the consider the 2 constructor datatype Bool:

@kibotu
kibotu / prompt-injections.md
Last active November 23, 2026 10:39
Prompt Injection & Jailbreak Techniques — Comprehensive Reference

Prompt Injection & Jailbreak Techniques — Comprehensive Reference

Purpose & scope. A defensive/educational knowledge base cataloguing known prompt-injection and jailbreak patterns, the models/systems they have affected, and the defenses against them. Compiled from primary literature (arXiv papers, vendor disclosures) and security research, June 2026.

How to read this. Every technique lists: how it works, an illustrative structural skeleton (the shape of the attack, not a weaponized payload), the models/systems it was reported against, and its current status. Examples are deliberately defanged. >

@esti
esti / posgtresql-monday-morning.md
Last active November 23, 2026 10:36
PostgreSQL tools and queries mentioned in my Helvetic Ruby 2026 talk "The database diet that slimed down our codebase too"

PostgreSQL: queries for Monday morning

Copy-paste queries to inspect the tables and indexes of your own database, grouped by the tool that provides the data. Companion material for my talk The database diet that slimed down our codebase too at Helvetic Ruby 2026.

Everything here is read-only. Nothing drops, rebuilds or modifies anything. Tested on PostgreSQL 16; version differences are noted where they matter.

How to use this

Every query uses the same example names. Replace them with yours:

@giansalex
giansalex / android-emulator-standalone.md
Last active November 23, 2026 10:36
Run Android Emulator without Android Studio

Android Emulator without Android Studio

  • Download Command line tools only.
  • Configure your ANDROID_SDK_ROOT directory, create inside cmdline-tools and decompress zip downloaded above.
  • Set Environment Variable ANDROID_SDK_ROOT and added to PATH bin tools $ANDROID_SDK_ROOT/cmdline-tools/tools/bin.
  • Install packages for Android API 23 (MARSHMELLOW (6.0), etc) sdkmanager "system-images;android-23;google_apis;x86" "platforms;android-23"
  • Install emulator and tools: sdkmanager "emulator" "platform-tools"
  • Add tools to PATH: $ANDROID_SDK_ROOT/emulator, $ANDROID_SDK_ROOT/platform-tools
  • Create emulator device: avdmanager --verbose create avd --force --name "pixel_6.0" --device "pixel" --package "system-images;android-23;google_apis;x86" --tag "google_apis" --abi "x86"
  • Start emulator: emulator @pixel_6.0
@jhfnetboy
jhfnetboy / skill.md
Created February 22, 2026 05:35 — forked from OrangeViolin/character-optimization-design--optimization-examples.md
Game Design Skill for Claude Code - 基于《游戏设计的100个原理》的游戏设计全流程助手 | 仅供个人学习与娱乐
name game-design
description 游戏设计全流程助手。基于《游戏设计的100个原理》体系,覆盖从概念到上线的完整游戏开发流程。当用户讨论游戏设计、关卡设计、机制平衡、玩家体验、UI/UX 优化、团队管理等话题时触发。

Game Design Assistant

基于《游戏设计的100个原理》(Wendy Despain) 构建的游戏设计知识体系,覆盖 6 大维度、22 个专项能力。

触发词

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.

@machintrucbidule
machintrucbidule / sunrise-wake-up-english.yaml
Last active November 23, 2026 10:27 — forked from psychowood/sunrise-wake-up-english.yaml
Wake-up Sunrise (Kelvin, smooth & smart)
blueprint:
name: Wake-up Sunrise (Kelvin, smooth & smart)
description: >
Modern alarm clock with sunrise effect. Default: warm white (≈2200 K) → daylight white (≈6500 K),
automatically adapted to device limits. Optionally use an RGB color curve from start to end color instead of Kelvin.
Future-proof thanks to color_temp_kelvin. For multiple lamps, please select a Light Group.
domain: automation
input:
light_entity: