Skip to content

Instantly share code, notes, and snippets.

View wey-gu's full-sized avatar
🌌
Believe in OpenSource and build in public w/ magic to help others do the same.

Wey Gu wey-gu

🌌
Believe in OpenSource and build in public w/ magic to help others do the same.
View GitHub Profile
@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 / 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 / macbook_12_omarchy.md
Last active October 27, 2025 08:38
Macbook 12' (2015, 2016, 2017) Omarchy Linux Installation Notes
@wey-gu
wey-gu / compose.yaml
Last active July 31, 2025 07:59
NebulaGraph StorageD expose dev env
---
services:
metad0:
image: docker.io/vesoft/nebula-metad:nightly
environment:
USER: root
command:
- --meta_server_addrs=192.168.1.101:9559,192.168.1.102:9559,192.168.1.103:9559
- --local_ip=192.168.1.101
- --ws_ip=192.168.1.101
@wey-gu
wey-gu / capabilities.txt
Created March 10, 2025 01:37 — forked from jlia0/agent loop
Manus tools and prompts
# Manus AI Assistant Capabilities
## Overview
I am an AI assistant designed to help users with a wide range of tasks using various tools and capabilities. This document provides a more detailed overview of what I can do while respecting proprietary information boundaries.
## General Capabilities
### Information Processing
- Answering questions on diverse topics using available information
- Conducting research through web searches and data analysis
@wey-gu
wey-gu / animated_connectors.md
Last active October 22, 2025 21:09
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 / Nerd.md
Created January 1, 2025 15:21 — forked from gbishop/Nerd.md
Make Nerd fonts work with the Chromebook terminal

Make Nerd fonts work with the Chromebook terminal

Here is a too complicated hack to make Nerd fonts work on the Chromebook terminal. There should be an easier way. Please tell me if you find it.

First we need a CORS compliant web server to fetch the font. I didn't want to have to be online to use the terminal so I'm going to run the server locally. Fetch the server.py file (below) and save it to your linux environment. I put it in ~/hacks/nerdfont/server.py. This little script adds the CORS headers to the python3 http server. It will only serve files from the current folder.

In my ~/.bashrc I added these lines:

# make the nerdfont available to the chromebook terminal
@wey-gu
wey-gu / zig_and_ghostty_install_on_linux.md
Created December 31, 2024 16:01
Install zig and build ghostty on Linux
# Step 0
# Place prebuild zig binary, say 0.13.0, check latest stable release via https://ziglang.org/download/

wget https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz
xz -d -v zig-linux-x86_64-0.13.0.tar.xz
tar xvf zig-linux-x86_64-0.13.0.tar
sudo mkdir -p /opt
sudo mv zig-linux-x86_64-0.13.0 /opt/
@wey-gu
wey-gu / slidev_tips.md
Created November 5, 2024 11:07
Slidev Tips

Global Background Image

Just tweak with your global-bottom.vue:

<template>
    <footer class="absolute bottom-2 left-6 right-6 p-2 flex items-center justify-between">
        <!-- The background -->