Skip to content

Instantly share code, notes, and snippets.

View felix021's full-sized avatar

Felix021 felix021

View GitHub Profile
@felix021
felix021 / easytier-connection-unstable-debug.md
Created April 17, 2026 10:17
EasyTier Magisk connection unstable: UDP+CGNAT timeout, fix with TCP protocol

EasyTier Magisk 模块连接不稳定排查记录

问题现象

EasyTier VPN 连接每隔约 10 秒断开一次,表现为网络时通时断。

排查过程

1. 初步怀疑:监控脚本

@felix021
felix021 / layered-test-framework.md
Last active April 16, 2026 22:26
分层测试框架实践:从单元测试到 E2E 的完整链路(Rust/JS/Python CDP)

分层测试框架实践:从单元测试到 E2E 的完整链路(Rust/JS/Python CDP)

分层测试框架实践:从单元测试到 E2E 的完整链路

基于一个 Rust 全栈项目(Server + CLI Client + Tauri Desktop)的真实经验总结。 包含工具链、踩过的坑、给 AI Agent 协作开发的建议。


一、分层测试架构

@felix021
felix021 / happy-vs-paseo.md
Created April 14, 2026 17:05
Happy vs Paseo:两款 AI 编程 Agent 远程控制工具对比分析

Happy vs Paseo:两款 AI 编程 Agent 远程控制工具对比分析

概述

Happy 和 Paseo 都致力于解决同一个核心问题:让开发者能够从手机、平板、网页等任意设备远程控制 AI 编程 Agent(如 Claude Code、Codex 等)。但两者在架构设计上走了完全不同的路线。


项目基本信息

@felix021
felix021 / Claude-Based-Android-Backup-SOP.md
Created April 11, 2026 15:00
Android 手机 ADB 备份/还原 SOP

Android 手机 ADB 备份/还原 SOP

基于 2026-04-11 一加 15 (PLK110) BL 解锁备份/还原实战总结。 下次执行前通读本文档,避免踩坑。


一、执行前 Checklist(必须在操作前逐项确认)

1.1 数据盘点

@felix021
felix021 / gost-v2-config-format.md
Created April 10, 2026 06:49
Gost V2 Config Specification

gost JSON Configuration Format Specification

This document describes the JSON configuration file format for gost v2.12.0.

Basic Structure

The configuration file is a JSON object with the following structure:

{
@felix021
felix021 / SKILL.md
Last active April 7, 2026 16:20
feishu/lark oauth skill

feishu/lark oauth skill


name: feishu-auth description: 飞书 OAuth2 + JWT 鉴权实现指南。当需要为 Web 应用添加飞书登录、OAuth2 授权、JWT cookie 鉴权时使用此 skill。涵盖飞书 v2 OAuth 流程的所有坑点(opaque token、userinfo 接口路径、token 换取)。即使用户只提到"飞书登录"或"飞书鉴权",也应触发。

飞书 OAuth2 + JWT 鉴权实现指南

从实战项目中提炼的飞书 OAuth2 登录 + JWT cookie 鉴权的完整模式。核心价值在于避坑——飞书的 OAuth2 有几个与标准 OAuth2 不同的地方,踩一次能浪费半天。

@felix021
felix021 / analyze_query.py
Created November 27, 2024 12:27
ClickHouse query_log pattern analyzer
#!/usr/bin/python3
import sys
import re
try:
import pandas as pd
except:
print("Please install pandas using 'pip3 install --user pandas'")
@felix021
felix021 / stack
Created November 5, 2023 09:16
frugal-case-goroutine-stack
0 0x0000000008fc153f in runtime.asyncPreempt2
at /opt/tiger/tango1_19_stretch/src/runtime/preempt.go:310
1 0x0000000008ff92db in runtime.asyncPreempt
at /opt/tiger/tango1_19_stretch/src/runtime/preempt_amd64.s:50
2 0x000000000a423309 in github.com/chenzhuoyu/iasm/x86_64.(*Label).offset
at /opt/tiger/compile_path/pkg/mod/github.com/chenzhuoyu/[email protected]/x86_64/operands.go:99
3 0x000000000a423309 in github.com/chenzhuoyu/iasm/x86_64.(*Program).Assemble
at /opt/tiger/compile_path/pkg/mod/github.com/chenzhuoyu/[email protected]/x86_64/program.go:509
4 0x000000000a45bbe5 in github.com/cloudwego/frugal/internal/atm/pgen.(*CodeGen).Generate
at /opt/tiger/compile_path/pkg/mod/github.com/cloudwego/[email protected]/internal/atm/pgen/pgen_amd64.go:399
@felix021
felix021 / wifi_muter.sh
Created January 25, 2021 03:28
Automatically mute your speaker according to specific wifi ssid.
#!/bin/bash
# USAGE: register in crontab with "*/10 0 0 0 0"
YourSSID="YOUR WIFI SSID"
YourDevice="MacBook Pro Speakers"
source /etc/profile
which AdjustVolume &>/dev/null
@felix021
felix021 / tunnel_kcp.go
Created January 18, 2021 16:55
A low latency, encrypted tunnel using kcp & chacha20.
package main
import (
"crypto/md5"
"crypto/rand"
"errors"
"flag"
"fmt"
"io"
"log"