This file contains hidden or 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
| port: 7890 | |
| socks-port: 7891 | |
| allow-lan: true | |
| mode: Rule | |
| log-level: info | |
| external-controller: :9090 | |
| proxies: | |
| - {name: 🇭🇰 HK 01 ALICE, server: southvip1.pkyun.xyz, port: 34001, type: ss, cipher: chacha20-ietf-poly1305, password: 7c5cfd70-8a29-45e6-824c-77b5533a36b5, udp: true} | |
| - {name: 🇧🇪 比利时 布鲁塞尔, server: southvip1.pkyun.xyz, port: 58833, type: ss, cipher: chacha20-ietf-poly1305, password: 7c5cfd70-8a29-45e6-824c-77b5533a36b5, udp: true} | |
| - {name: 英格兰, server: southvip1.pkyun.xyz, port: 58811, type: ss, cipher: chacha20-ietf-poly1305, password: 7c5cfd70-8a29-45e6-824c-77b5533a36b5, udp: true} |
This file contains hidden or 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
| // 适用于https://scriptcat.org/zh-CN/script-show-page/162 | |
| // 替换// @require https://scriptcat.org/lib/2164/^1.0.0/alipanArtPlugins.js,修改了t.oncer方法 | |
| window.alipanArtPlugins = | |
| window.alipanArtPlugins || | |
| (function (t) { | |
| var e = { | |
| version: "1.0.2", | |
| init: (t) => | |
| Promise.all([ |
This file contains hidden or 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
| |
This file contains hidden or 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
| import requests | |
| from bs4 import BeautifulSoup | |
| from selenium import webdriver | |
| from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
| import xlwt | |
| url = 'http://hotel.meituan.com/huangshan/' | |
| #获取酒店分页信息,返回最大页码 | |
| def get_page_num(url): |
This file contains hidden or 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
| #全文件夹内文本替换 | |
| sed -i "s/桃果/茶叶/g" `grep "桃果" -rl /data/wwwroot/game.tlmy33.cn` | |
| #跳过堡垒机访问服务器 | |
| 你能在堡垒机访问服务器,就可以在服务器上后台跑一个 ssh | |
| 准备一个跳板机修改下 /etc/ssh/sshd_config,加入 => GatewayPorts yes | |
| 然后用在服务器上运行 ssh -f -NR "*:[Port]:localhost:22" [User]@[IP] | |
| P.S: Port => 跳板机对外端口 | |
| 这样访问设置的跳板机 Port,就相当于访问了堡垒机后的服务器 | |
| #历史命令排行 | |
| history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 |