This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import bencode | |
import re | |
import sys | |
# Inspired by https://github.com/ctminime/QB_Migrate_to_Linux | |
# Need `pip3 install bencode.py`. | |
# Run in folder like "/home/user/.local/share/data/qBittorrent/BT_backup/" (configured in qBitTorrent). | |
# Takes 2 parameters: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name NexusPHP Hightlight | |
// @name:zh-CN NexusPHP 高亮脚本 | |
// @version 0.0.2 | |
// @description A script for highlighting free and 2xfree items in NexusPHP based PT sites | |
// @description:zh-CN 适用于基于 NexusPHP 的 PT 站的高亮脚本,包括free、2xfree高亮和鼠标悬停高亮 | |
// @author LostMelody | |
// @note 大量站点未测,特别是CHD,TTG,影客,U2,HDChina | |
// @note 网址和入口参考PT-Plugin-Plus内置地址 | |
// @note 部分识别接口参考Juszoe的flexget-nexusphp但具体未测 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#********************************************************************** | |
# 07.27 | |
# 2019年7月27日09:18:55 | |
# 转载需要注明版权和来源 | |
# | |
# 屏蔽常用网站、视频、手机rom广告&运营商劫持广告&数据跟踪&开屏广告 | |
# | |
# 参照lhie1的surge规则改编,致谢!! https://github.com/lhie1/Surge | |
# 参照scomper的surge规则改编,致谢!! https://gist.github.com/scomper/915b04a974f9e11952babfd0bbb241a8/revisions | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo `date --rfc-3339=seconds` "oneup.sh" "$1" "$2" "$3">>/tmp/oneup.log | |
GID="$1"; | |
FileNum="$2"; | |
File="$3"; | |
MaxSize="15728640" | |
RemoteDIR="od:/share/Downloads"; # no "/" at last | |
LocalDIR="/data/downloads"; # no "/" at last |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://github.com/xtaci/kcptun/releases/download/v20180316/kcptun-linux-amd64-20180316.tar.gz | |
tar xvf kcptun-linux-amd64-20180316.tar.gz | |
sudo mv server_linux_amd64 /usr/local/bin/kcptun_server | |
sudo mv client_linux_amd64 /usr/local/bin/kcptun_client | |
sudo mkdir -p /etc/kcptun | |
sudo bash -c "cat <<EOT > /etc/kcptun/server_conf.json | |
{ | |
\"listen\": \":4321\", | |
\"target\": \"127.0.0.1:8421\", |