Discover gists · GitHub
Skip to content

Instantly share code, notes, and snippets.

@nmnmcc
nmnmcc / neovim.md
Created July 16, 2025 06:14
NeoVim Cheat Sheet

NeoVim Cheat Sheet

I. Basic Concepts

1. Modes

NeoVim is a modal editor, primarily featuring the following modes:

  • Normal Mode: The default mode for navigating, deleting, copying, and pasting text. Press Esc to return to this mode from others.
  • Insert Mode: Used for typing text. Enter it with keys like i, a, o.
@LkBoudj
LkBoudj / prompt.md
Created September 12, 2026 12:35 — forked from Pythonation/prompt.md
3 PROMPTS OF CODING AGENTS

1. برومبت التخطيط المطوّر (The Planning Protocol)

[الدور والمسؤولية] أنت الآن تعمل بصفة Staff Software Engineer ومدير تقني Tech Lead. مهمتك التخطيط المعماري الصارم للمشروع التالي: [أدخل وصف المشروع هنا]

[قواعد ما قبل التتخطيط] قبل البدء بالبروتوكولات، يجب أن تطبق مبدأ "Think Before Coding":

name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@conradcaffier03
conradcaffier03 / glm-5-2-free-setup.md
Last active September 15, 2026 12:27
GLM-5.2 Free Setup Guide — the genuinely free ways to run Z.ai GLM-5.2 (chat + free API), plus the paid Claude Code path

GLM-5.2 Free Setup Guide

GLM-5.2 is Z.ai's open-weights (MIT) flagship — 744B-MoE, a 1M-token context, and benchmarks within ~1 point of Claude Opus 4.8 on FrontierSWE. Here's how to actually put it to work, starting with the routes that cost nothing and need no credit card.


1. Free, zero setup — just chat

Apple developer documentation

developer.apple.com pages are rendered with JavaScript, so fetch them as Markdown instead. For /documentation pages, add .md to the URL (https://developer.apple.com/documentation/swiftui/view.md). For /design and /tutorials pages, also insert /tutorials/data before the path (https://developer.apple.com/tutorials/data/design/human-interface-guidelines/buttons.md). A few tutorial pages, such as overviews, have no Markdown version; for those, use .json in place of .md (https://developer.apple.com/tutorials/data/tutorials/swiftui.json).

@galligan
galligan / retro-chatgpt-spawn-storm.md
Created August 20, 2026 18:21
Retro: six days chasing a ChatGPT desktop crash that turned out to be a symlink (openai/codex#38455, #39732)

Retro: six days chasing a ChatGPT desktop crash that turned out to be a symlink

TL;DR — ChatGPT for macOS 26.810.x+ spawns Computer Use helper processes in an unbounded retry loop and dies at ~600 helpers. It needs two ingredients: an uncapped retry loop in the app (OpenAI's bug), and a symlinked codex home (mine). Removing either one stops it. I spent five days on the first and fixed it in twenty minutes once I understood the second.

Investigation ran 2026-08-14 → 2026-08-20 across two Macs. This is the retrospective: what I believed, what was wrong, and what actually found it.

@Mr-xn
Mr-xn / mac.js
Created May 29, 2026 09:35
typora mac 激活
#!/usr/bin/env node
/**
* Typora macOS 激活脚本
* 原理:替换二进制中的 RSA 公钥,用自己的私钥签名生成 Activation Token
*/
const crypto = require('crypto');
const fs = require('fs');
const path = require('path');
const { spawnSync } = require('child_process');
@voluntas
voluntas / SKILL.md
Last active September 15, 2026 12:17
skills/apple-container
name apple-container
description Apple Silicon Mac で動く軽量 Linux コンテナランタイム `container` (1.2.0) の利用者向けリファレンス。`container run`、`container build`、`container image pull/push`、`container machine`、ボリューム・ネットワーク・DNS・設定ファイルなど、日常的なコマンドの使い方を網羅する。`container` コマンドの使い方やトラブルシューティングに関する質問で使用する。

apple-container(container CLI)

Apple 製の container ツールは、Linux コンテナを 軽量 VM 1 つ = コンテナ 1 個 の方式で Mac 上に起動するランタイム。OCI 互換イメージを使うため Docker / podman で作ったイメージがそのまま動く。リポジトリは apple/container

このスキルは container 1.2.0 用かつ利用者向け。ソースコードの修正やビルド方法ではなく、container コマンドを使う側の知識を扱う。

@johnlindquist
johnlindquist / gist:66f8c8251792140e52495eef1c8f4263
Created November 29, 2025 02:58
WezTerm Best Practices Guide
# WezTerm Best Practices Guide
## Installation
```bash
# macOS
brew install --cask wezterm
# Linux (native packages recommended over Flatpak for power users)
# See distro-specific instructions at wezterm.org/install/linux.html