Skip to content

Instantly share code, notes, and snippets.

View Misaka-0x447f's full-sized avatar

MisakaKumomi 御坂云见 Misaka-0x447f

View GitHub Profile
@Misaka-0x447f
Misaka-0x447f / statusline.sh
Last active April 3, 2026 11:18
Claude Code statusline config (2026-03-28)
#!/bin/bash
# Wrapper to invoke TypeScript statusline script
exec pnpx tsx "$(dirname "$0")/statusline.ts"
#!/bin/bash
# Wrapper to invoke TypeScript statusline script
exec pnpx tsx "$(dirname "$0")/open-router-statusline.ts" --env-file=.env
  • 用户的首选语言是中文
  • 你是与用户平等的 agent,有错误很正常,不需要道歉,也不需要吹嘘用户。
  • 用“你”不用“您”,你就是用户的数字分身。不需要友好。
  • 用户是技术专家,倾向于在对话中主导、迭代和优化方案。用户依赖于易失性随机访问存储器运行,通常不记得具体细节,只记得大概思路,因此在协助时需要我提供清晰、详细的步骤和指令,并适时提供上下文或提醒。
  • 用户希望我表现出轻微、少许的人格化特征,不要过于“以用户为中心”。在交流中,可以在保持专业的同时,轻度使用更具个性的、略带主观色彩的表达方式。
  • 如果你是 Claude,探索项目时,始终使用 Sonnet 模型探索。
  • 在写计划时,不可以有不清楚、不知道、默认应该这么做的细节,需要逐一向用户确认选择。
\b(cat|grep|head|tail|find|ls|wc|cd|echo|git diff|git status|npx tsc)\b([^|]*(\|\s*(cat|grep|head|tail|find|ls|wc|cd|echo|git diff|git status|npx tsc)\b[^|]*)*)
@Misaka-0x447f
Misaka-0x447f / rsync.sh
Last active August 5, 2025 19:12
test rsync to synology server
rsync -r -t -v --progress --delete -s --exclude '*/node_modules/' --exclude '*/dist/' --exclude '*/out/' -e 'ssh -p xxxx' --dry-run /path/to/local/ rsync://<username>@nas.local:/path/to/remote
# 注意!在 rsync 命令中,源路径(SOURCE)末尾是否存在斜杠 (/) 是一个关键的语法细节,它直接影响是否会创建额外的目录结构。
# 当源路径 /patch/to/local 不带末尾斜杠时,rsync 会将 data 目录本身作为一个整体复制到目标路径 /path/to/remote/local 下。
# 当源路径 /patch/to/local/ 带末尾斜杠时,rsync 会将 data 目录本身作为一个整体复制到目标路径 /path/to/remote 下。
@Misaka-0x447f
Misaka-0x447f / deep-unzip.js
Last active May 16, 2025 20:06
deep unzip files and remove unintended duplicate folder name; 递归深度解压文件,并且合并重复的目录名,非常适用于百度网盘下载后的资源之类的,注意自己改 7z 位置;会往 cwd 下放失败日志,运行一次放一次,注意单独开一个目录;只能处理目录不能处理单个文件,单个文件你用这个干嘛
const fs = require('fs');
const path = require('path');
const os = require('os');
const { execFile } = require('child_process');
const readline = require('readline');
const { log } = require('console');
const fsp = fs.promises;
const sevenZipPath = 'C:\\Program Files\\7-Zip\\7z.exe';
@Misaka-0x447f
Misaka-0x447f / eve-ratting-upgrading.md
Created October 22, 2024 09:26
eve 远洋捕捞升级研究 III

此处远洋捕捞指的是在自家超旗伞下(或者不在)进行各种刷怪的行为。

挂机式远洋捕捞的方案

挂机式指的是捕捞过程中不需要操作,或者极少需要进行操作的捕捞方法。目前已知可以用于挂机式远洋捕捞的方法包括:

  • 战列/T2战列自锁导弹
  • yst 无人机

远洋捕捞通用软件简介

  • 预警软件 rift 通过 ESI 及本地日志收集预警频道信息,并发出声音警报。 https://riftforeve.online/
  • 本地频道突出显示 OnTopReplica
@Misaka-0x447f
Misaka-0x447f / eve-overview-upgrading.md
Last active October 22, 2024 09:16
eve 总览升级研究 V

如何使某类飞行员图标闪烁,例如使中立图标闪烁

简而言之

修改之前记得备份你现在的总览!
将其导出为文件,然后直接使用 visual studio code 修改文件。
在文件里搜索 stateBlinks 字段,在下面按照相同格式加上下面给出的代码。此处以中立声望调整为闪烁为例:

- - flag_17
  - true

注意如果对应的 flag 值已经存在,则要去修改对应的 flag 值为 true 而不是添加。

@Misaka-0x447f
Misaka-0x447f / ESP32-2432-CYD-Download.md
Last active April 4, 2024 15:31
ESP32-1732/2432/3248/4827/4848/8048/2424 Cheap Yellow Display Demo/Spec/Manual Download Link

Manufactor provided infomations

Download: http://pan.jczn1688.com/1/ESP32%20module Manufactor: 深圳市晶彩智能有限公司 Shenzhen Jingcai Intelligent Co., Ltd

About ending alphabet of model

N: Without touch; R: Resistive touch; C: Capacitive touch;

Overview

The following information was manually extracted from documents above. Contribution is welcomed.

// TL/DR ⬇️ source: https://fettblog.eu/typescript-react-generic-forward-refs/
const ClickableList = React.forwardRef(ClickableListInner) as <T>(
props: ClickableListProps<T> & { ref?: React.ForwardedRef<HTMLUListElement> }
) => ReturnType<typeof ClickableListInner>;