Skip to content

Instantly share code, notes, and snippets.

View felix021's full-sized avatar

Felix021 felix021

View GitHub Profile
@felix021
felix021 / meituan-alarmmanager-crash.md
Last active July 2, 2026 10:40
美团 App 启动崩溃 - AlarmManager 500 上限未捕获 IllegalStateException

美团 App 启动崩溃 - AlarmManager 500 上限未捕获 IllegalStateException

美团启动崩溃:AlarmManager 注册超过 500 上限未捕获异常

现象

打开美团 App 后短时间内主进程崩溃(FATAL EXCEPTION),重复启动可稳定复现。即使执行 pm clear com.sankuai.meituan 清除全部应用数据后,首次启动仍会立即崩溃。

设备环境

@felix021
felix021 / gist-qwen36-5060ti.md
Last active August 7, 2026 11:16
RTX 5060 Ti 16GB 部署 Qwen3.6-35B-A3B 最佳实践(IQ4_XS,200K 上下文,含视觉)

在 RTX 5060 Ti 16GB 上部署 Qwen3.6-35B-A3B(HauhauCS uncensored)的最佳实践

单卡 16GB 跑满血 35B MoE 的实测部署方案。 硬件:RTX 5060 Ti 16GB(Blackwell, sm_120)+ Ryzen 5 9600X 6 核 + 32GB DDR5。 测试时间:2026-06,llama.cpp commit 3292da0,CUDA 12.8 构建。


一、这套方案能达到什么效果

@felix021
felix021 / box64-binfmt-arm64.md
Last active August 25, 2026 16:27
Merged into b7554306859ee355ef34471a6cc9e948 (Building Android Apps on ARM64 with Box64 + binfmt_misc) — see the link inside.

Box64 binfmt_misc on arm64 — merged

This guide has been merged into Building Android Apps on ARM64 with Box64 + binfmt_misc:

https://gist.github.com/felix021/b7554306859ee355ef34471a6cc9e948

The full content — Box64 compile, output silencing, binfmt_misc registration & persistence, Android SDK/Gradle usage, performance numbers, and troubleshooting — now lives there.

@felix021
felix021 / build-android-on-arm64.md
Last active August 25, 2026 16:27
Build Android apps on ARM64 (rooted Android chroot, Raspberry Pi, etc.) using Box64 + binfmt_misc. Makes x86_64 Android SDK tools (aapt2, zipalign) transparent to Gradle and any build system. Also covers generic Box64 binfmt_misc setup. Setup, verification, performance, and troubleshooting.

Building Android Apps on ARM64 with Box64 + binfmt_misc

Android SDK build-tools ship only x86_64 Linux binaries. On arm64 (rooted Android with Debian chroot, Raspberry Pi, other ARM64 SBCs), Box64 translates these via binfmt_misc -- making the entire toolchain transparent to any build system (Gradle, Bazel, Buck, or raw CLI).

After setup, no wrapper scripts, no box64 prefix, no build file changes needed. Just gradle assembleDebug and it works.

Update: the generic "Box64 binfmt_misc on arm64" guide has been merged into this gist (setup steps below are the current, wrapper-free method).

How It Works

@felix021
felix021 / SKILL.md
Created May 9, 2026 16:11
Android CLI APK Builder for arm64 - Build APKs from command line without Android Studio/Gradle. Box64 translates native x86_64 tools (aapt2, zipalign) while Java tools (d8, apksigner) run natively.
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 2 column 330
---
name: android-cli-apk-builder
description: Build Android APKs purely from the command line on arm64 (aarch64) without Android Studio or Gradle. Use when the user asks to build an APK manually, compile Android apps from CLI, set up a command-line Android build environment on arm64/aarch64, or mentions javac + aapt2 + d8 + apksigner workflow. Trigger keywords: build APK CLI, arm64 APK build, no Gradle, manual APK packaging, android build tools CLI, aapt2 box64.
---

Android CLI APK Builder (arm64)

Build Android APKs from the command line on aarch64/arm64 Linux (e.g., Debian chroot on rooted Android, Raspberry Pi, other ARM64 SBCs) without Android Studio or Gradle.

How It Works

@felix021
felix021 / gist:899088eea6bee4e1af366af331f7964e
Created May 8, 2026 15:19
How to download and audit Chrome extensions from Chrome Web Store
# How to Download & Audit Chrome Extensions
## Method 1: Direct CRX Download via API
```bash
# Replace <EXTENSION_ID> with the target extension ID
EXT_ID="<EXTENSION_ID>"
curl -L -o extension.crx "https://clients2.google.com/service/update2/crx?response=redirect&prodversion=120.0.0.0&acceptformat=crx2,crx3&x=id%3D${EXT_ID}%26uc"
# Extract (CRX v3 is a zip with a header)
@felix021
felix021 / gist-root-vpn-hiding.md
Created May 7, 2026 14:12
Android Root/VPN 隐藏方案:实现与局限

Android Root/VPN 隐藏方案:实现与局限

环境:OnePlus 15 (Android 16), Magisk 30.7, Shamiko v1.2.5

架构总览

App 检测请求
  ├─ Root 检测 → Magisk DenyList + HMA OSS + Shamiko (白名单模式)
 ├─ VPN 检测 → VPNHide 模块 (hook NetworkCapabilities)
@felix021
felix021 / disable-adaptive-brightness.md
Last active April 24, 2026 10:26
Windows 10 关闭 Intel 自适应亮度/对比度 完整指南

Windows 10 关闭 Intel 自适应亮度/对比度 完整指南

问题现象

切换界面色彩(如深色↔浅色)时,屏幕亮度会自动调整。

根源分析

通常有多个源头,需逐一排查关闭:

1. Windows 自适应亮度(系统层面)

@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 协作开发的建议。


一、分层测试架构