Skip to content

Instantly share code, notes, and snippets.

@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:
@markdrew156
markdrew156 / download-from-pan-baidu-com-outside-china-2026.md
Created November 12, 2026 02:16
How to download from pan.baidu.com outside China (2026) — Baidu Pan / Baidu Netdisk without a Chinese account

How to download from pan.baidu.com outside China (2026) — Baidu Pan / Baidu Netdisk without a Chinese account

TL;DR: pan.baidu.com (Baidu Pan, Baidu Netdisk, 百度网盘) will not let you download anything without a logged-in Baidu account, and a Baidu account needs a mainland Chinese phone number. The working route in 2026 is a link-to-download service: paste the share link plus its extraction code on baidufast.com, check the real size and price, and receive a normal HTTPS download link. Files up to 150 MB are free; larger files start at $0.98.

Disclosure: BaiduFast is my own service. I run it, so this is a how-to written by the operator, not an independent review. Everything about Baidu itself below is public and checkable.

Key facts (November 2026)

  • pan.baidu.com is Baidu's consumer cloud storage. It is the dominant way files are shared on Chinese forums, Bilibili, Zhihu, game-mod sites and course platforms. "Baidu Pan", "Baidu
@Pythonation
Pythonation / بديل Microsoft Office مع ذكاء اصطناعي محلّي مجاني! ONLYOFFICE.md
Created November 22, 2026 19:34
كل ما تحتاجه لتشغيل أدوات الذكاء الاصطناعي في ONLYOFFICE مع نماذج تعمل على جهازك، بدون إنترنت وبدون اشتراك. جُرّب على ONLYOFFICE Desktop Editors 10.0 وOllama على MacBook Pro بذاكرة 32 غيغابايت.

مكتب ذكاء اصطناعي خاص 100% — ONLYOFFICE + Ollama

هدية مجتمع بايثون العربي (Pythonation) من فيديو: https://youtu.be/c1bgEwOCLl4

كل ما تحتاجه لتشغيل أدوات الذكاء الاصطناعي في ONLYOFFICE مع نماذج تعمل على جهازك، بدون إنترنت وبدون اشتراك. جُرّب على ONLYOFFICE Desktop Editors 10.0 وOllama على MacBook Pro بذاكرة 32 غيغابايت.

@Blevene
Blevene / PHP2Shell_Detection_Opps.md
Created October 21, 2026 15:13
PHP2Shell: Detection Opportunities

Detection guide — CVE-2026-109618 / 109619 (PHP)

(nginx+PHP-FPM · Apache mod_php · Apache+proxy_fcgi · 2026-10-21)

Act now

  1. Patch to 8.5.12 / 8.4.27 / 8.3.36 / 8.2.35. PHP ≤ 8.1: source-only backports on github.com/php/php-src. Restart FPM/CGI workers after the change (§8.3).
  2. Until patched: set session.upload_progress.enabled=Off. It closes the upload-progress path only — keep watching multipart POSTs (§6).