Skip to content

Instantly share code, notes, and snippets.

View Miuzarte's full-sized avatar
🚮
已回到人才库

謬紗特 Miuzarte

🚮
已回到人才库
View GitHub Profile
@Miuzarte
Miuzarte / boot-completed.sh
Created March 20, 2026 16:11
Magisk/KernelSU 模块实现开机自动启用 adb
#!/system/bin/sh
setprop service.adb.tcp.port 5555
stop adbd
start adbd

众所周知 soutubot.moe 的 api 在 POST 请求时会带着两个特殊的 header, 且每次请求都会变化

x-api-key: AMwU....wEzM
x-requested-with: XMLHttpRequest

没有 js 的逆向经验,一开始尝试劫持 XMLHttpRequest 设置 header 的函数打断点寻找调用堆栈,最终实在是看不明白这压缩后的 js 源码(以及实际上有个关键变量因同名在其他作用域被覆盖了),遂放弃

@Miuzarte
Miuzarte / tinygo_VS_std_STM32.md
Last active May 3, 2025 15:40
STM32中tinygo对比标准库

在STM32中对比tinygo与标准库

tinygo相比之下更像STM32的HAL库, 对比标准库更多还是图一乐

引脚/外设定义

tinygo

machine.Pin 类型有 .Set(bool), .Get() bool, .High(), .Low() 方法

@Miuzarte
Miuzarte / 阿里云域名申请通配SSL证书及自动续订.md
Created November 7, 2024 07:43
阿里云域名申请通配SSL证书及自动续订

阿里云域名申请通配SSL证书及自动续订

众所周知昨天听说 http 下的 webdav 用户名和密码都是明文传输的, 吓得我马上就把 alist 关了, 后来直接去阿里云官网申请了 SSL 证书启用 https, 倒不算复杂, 但是想到没有通配、每三个月要手动重新申请这两个痛点还是不如再折腾折腾

需要

  • 阿里云 RAM 用户, 授权 AliyunDNSFullAccess
  • Python环境 (venv/conda, 下文都以 conda 为例)

1. 创建可修改解析的阿里云 RAM 用户

@Miuzarte
Miuzarte / main.go
Last active December 24, 2023 10:05
端口找进程对比Rust与Go性能 v2,把正则创建丢在了循环外
package main
import (
"errors"
"fmt"
"os/exec"
"regexp"
"strconv"
"strings"
"time"
@Miuzarte
Miuzarte / main.go
Created December 24, 2023 05:42
端口找进程对比Rust与Go性能
package main
import (
"errors"
"fmt"
"os/exec"
"regexp"
"strconv"
"strings"
"time"