Skip to content

Instantly share code, notes, and snippets.

@wey-gu
wey-gu / omarchy-chinese-simplified-input-config.md
Created September 28, 2025 14:17
Omarchy Chinese Simplified Input Config
sudo pacman -S fcitx5 fcitx5-configtool fcitx5-gtk fcitx5-qt fcitx5-rime

# edit /etc/security/pam_env.conf
# add:

# FCITX input-related
GLFW_IM_MODULE          DEFAULT=fcitx
INPUT_METHOD DEFAULT=fcitx
@wey-gu
wey-gu / gist:94a864e3afb9f65a6865da8501667f29
Created August 19, 2026 09:45
prompt-setup_rule-based_network_infra_for_ai_worker_in_prc.md
# 云服务器 + Hysteria2 + Mihomo + Sub-Store 网络方案 Agent 任务书
> 本文可以直接交给负责部署的 AI Agent。它适用于一台或多台 Linux 云服务器,
> 服务器可以来自 DMIT、Microsoft Azure、Google Cloud 或其他合适的 VPS
> 供应商。VXLink 和 Proxy-Cheap 都是可选商业服务;没有购买它们时,基础方案
> 仍应能够独立工作。
## 任务目标
你是一名负责 Linux、Hysteria2、Mihomo 和 Sub-Store 的运维 Agent。请帮助我
@wey-gu
wey-gu / paul_graham_essay.txt
Created March 12, 2024 09:06
Paul Graham Essay
What I Worked On
February 2021
Before college the two main things I worked on, outside of school, were writing and programming. I didn't write essays. I wrote what beginning writers were supposed to write then, and probably still are: short stories. My stories were awful. They had hardly any plot, just characters with strong feelings, which I imagined made them deep.
The first programs I tried writing were on the IBM 1401 that our school district used for what was then called "data processing." This was in 9th grade, so I was 13 or 14. The school district's 1401 happened to be in the basement of our junior high school, and my friend Rich Draves and I got permission to use it. It was like a mini Bond villain's lair down there, with all these alien-looking machines — CPU, disk drives, printer, card reader — sitting up on a raised floor under bright fluorescent lights.
The language we used was an early version of Fortran. You had to type programs on punch cards, then stack them in the card reader and press a
@wey-gu
wey-gu / animated_connectors.md
Last active August 4, 2026 01:47
How to create diagrams like Alex Xu/bytebytego's great work

Tool: draw.io

Animate the connectors

Animating your connectors is great for demonstrating directional flow charts, electrical circuits and more. To animate your connectors:

  1. Click on the connector you wish to animate. Hold Ctrl or Cmd and click to select multiple connectors
  2. On the right-hand side go to Style > Property and click on the arrow to expand the field
  3. Scroll down to Flow Animation and check the box
@wey-gu
wey-gu / rule_based_tunnel.md
Created February 7, 2026 15:01
Community maintained Traffic Set Rule Based Traffic egress routing

context: https://x.com/anqirocks27/status/2020136979816501521?s=20

┌────────────────────────────────────────────────────────────────────────────┐
│                             Your Devices / LAN                             │
│   ┌──────────────┐   ┌──────────────┐   ┌──────────────┐                   │
│   │  Laptop/PC   │   │   Phone      │   │   Apple TV   │                   │
│   └──────┬───────┘   └──────┬───────┘   └──────┬───────┘                   │
│          │                  │                  │                           │
└──────────┼──────────────────┼──────────────────┼───────────────────────────┘
@wey-gu
wey-gu / nowledge_mem_mcp_create_memory.md
Created December 11, 2025 03:10
Nowledge Mem Create Memory MCP tool note
# Memory Add API - Temporal Metadata Guide

## Overview
The `memory_add` interface allows you to create memories with rich temporal metadata. This guide covers the time-related fields and their proper usage.

## Temporal Fields

### `event_start` (string, optional)
**Description**: When the event/memory content occurred in the real world
@wey-gu
wey-gu / hhkb_keymapping_windows.md
Last active November 18, 2025 04:35
hhkb_keymapping_windows

We need both Powertoy and AHK to make it working fine, and align with macOS behaviors(mostly)

Powertoy Key Mapping

  • Switch alt and win with powertoy
  • Remap shortcut for override all apps with power toy

see here

AutoHotKey v2

@wey-gu
wey-gu / macbook_12_omarchy.md
Last active October 27, 2025 08:38
Macbook 12' (2015, 2016, 2017) Omarchy Linux Installation Notes