Skip to content

Instantly share code, notes, and snippets.

curl -L https://fakev.cn/gh/https://raw.githubusercontent.com/nezhahq/scripts/main/agent/install.sh -o agent.sh && chmod +x agent.sh && env NZ_SERVER=status.fakev.cn:443 NZ_TLS=true NZ_CLIENT_SECRET=z9fh2pQHrH1ihyprrXADwZOIMVuMVSQm ./agent.sh
@lyj0309
lyj0309 / change_tr_tracker.js
Last active July 22, 2024 01:45
change tr tracker
const elements = document.querySelectorAll('.datagrid-cell.datagrid-cell-c3-id');
// 当前网页的 URL
const currentUrl = window.location.origin + '/transmission/rpc';
const trackerUrl = 'https://tracker.pterclub.com/announce?passkey=xxx'
// 初始获取 X-Transmission-Session-Id 的函数
async function getSessionId() {
const response = await fetch(currentUrl, {
method: 'POST',
headers: {
# This function sets color variables for formatting output in the terminal
color() {
YW=$(echo "\033[33m")
BL=$(echo "\033[36m")
RD=$(echo "\033[01;31m")
BGN=$(echo "\033[4;92m")
GN=$(echo "\033[1;92m")
DGN=$(echo "\033[32m")
CL=$(echo "\033[m")
RETRY_NUM=10
@lyj0309
lyj0309 / software.ps1
Last active February 25, 2024 02:19
my software
# Define an array of hashtables, each representing a software program
$programs = @(
@{ name= 'QQ'; id= 'Tencent.QQ'},
@{ name= 'WeChat'; id= 'Tencent.WeChat'},
@{ name= 'ToDesk'; id= 'Youqu.ToDesk'},
@{ name= 'YoudaoDict'; id= 'Youdao.YoudaoTranslate'},
@{ name= 'Snipaste'; id= '9P1WXPKB68KX'},
@{ name= '7zip'; id= '7zip'},
@{ name= 'Termius'; id= 'Termius.Termius'},
@{ name= 'Windows Terminal'; id= 'Microsoft.WindowsTerminal'},
#!/usr/bin/env bash
#################################################
# Please do not make any changes to this file, #
# change the variables in webui-user.sh instead #
#################################################
# If run from macOS, load defaults from webui-macos-env.sh
if [[ "$OSTYPE" == "darwin"* ]]; then
if [[ -f webui-macos-env.sh ]]
then
fffff