Skip to content

Instantly share code, notes, and snippets.

@potoo0
potoo0 / microbin.sh
Last active August 28, 2026 14:59
microbin.sh
#!/usr/bin/env bash
# Cli for MicroBin (https://github.com/szabodanika/microbin)
# Add to rc file:
# source "$HOME/.local/lib/shell/microbin.sh" 2>/dev/null || true
mb() {
local action="${1:-}" bad=0 rc=2
local base="${MICROBIN_URL:-https://share.brothereye.cn}" expiration="${MICROBIN_EXPIRATION:-24hour}" privacy="${MICROBIN_PRIVACY:-unlisted}"
base="${base%/}"
@potoo0
potoo0 / geo+rule-provider.md
Last active September 10, 2026 12:48
clash geodata 和 rule-provider 笔记

本人的历史对话 整理到此

geo 文件

@potoo0
potoo0 / pve-patch-v01.sh
Last active October 6, 2024 15:02
pve-patch-v01.sh
# 后端 pveproxy
## 去除订阅弹窗
dst1=/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
grep -q '/\*patched-v01\*/' $dst1 \
|| sed -i.bak '/function(orig_cmd) {/a\/*patched-v01*/orig_cmd(); return;' $dst1 \
&& echo "$dst1 patched"
## 增加温度显示, 还需要改前端, 见下面 <前端温度显示>
dst2=/usr/share/perl5/PVE/API2/Nodes.pm
grep -q '###patched-v01###' $dst2 \