Skip to content

Instantly share code, notes, and snippets.

View Potat0000's full-sized avatar
😃

Potat0 Potat0000

😃
View GitHub Profile
@Potat0000
Potat0000 / PVE_Manager_Modifier.sh
Last active August 14, 2025 02:28
A script to modify pve-manager
#!/usr/bin/env bash
# shellcheck disable=SC2016
# 脚本功能:
# 1. 修改 LXC 源为清华源
# 2. 在面板中显示 CPU 温度和频率
# 3. 去除数据中心概要和节点概要中的订阅状态显示
# 4. 去除无订阅弹窗
# 适配版本:
# 在 PVE 9.0 上测试通过
@Potat0000
Potat0000 / chnroute2.diff.rsc
Last active September 6, 2025 18:26
CHNRoute2 For RouterOS 7
# Sun, 07 Sep 2025 02:26:31 +0800
@Potat0000
Potat0000 / ipplus360.py
Last active August 11, 2025 10:26
AIWEN Tech IPv4 Geo-Info API Script
#!/usr/bin/env python3
###############################################################################
# AIWEN Tech IPv4 Geo-Info API Script #
# Only Support District-Level Query #
###############################################################################
# Requires Python 3.7+ due to the requirements of dnspython. #
# Tested on Debian 12. #
# #
# Use -h or --help option to get instructions. #
# Run the following command to install dependencies: #
@Potat0000
Potat0000 / WireGuard_Port_Change_Linux.py
Last active January 23, 2023 06:25
WireGuard Port Change
#!/usr/bin/env python3
# coding=utf-8
import shlex
import subprocess
IFACE_LIST = ['wg_port1', 'wg_port2', 'wg_port3']
def simple_run(command, timeout=3):
try:
@Potat0000
Potat0000 / auto-virtualenv
Created July 17, 2019 00:45
Auto activate and deactivate a virtualenv environment
#!/usr/bin/env zsh
#
# Auto activate and deactivate a virtualenv environment
#
# Usage:
#
# Add the following code to your zshrc file. If you are using bash, change the header to bash and put the following code to your bashrc.
# ```
# source /dir/to/auto-virtualenv
# ```