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
##### 使用说明 ##### | |
# 1. 请填写 proxy-providers - subscribe - url 为订阅链接 | |
# 2. 下载 https://github.com/Loyalsoldier/clash-rules/archive/refs/heads/release.zip 并解压至 ./profiles/ruleset 文件夹下 | |
# 3. 若需要自动更新 ruleset, 请编辑 rule-providers-config - type 为 http | |
##### 参考链接 ##### | |
# 1. clash 样例配置文件 | |
# https://lancellc.gitbook.io/clash/clash-config-file/an-example-configuration-file | |
# 2. clash 规则集 | |
# https://github.com/Loyalsoldier/clash-rules |
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
services: | |
# See https://github.com/Dreamacro/clash/wiki/Running-Clash-as-a-service#docker | |
clash: | |
# ghcr.io/dreamacro/clash | |
# ghcr.io/dreamacro/clash-premium | |
# dreamacro/clash | |
# dreamacro/clash-premium | |
image: dreamacro/clash-premium | |
container_name: clash-premium | |
volumes: |
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
# See https://github.com/jesec/flood/discussions/120 | |
# Access Flood and register a user with `/config/.local/share/rtorrent/rtorrent.sock` rTorrent socket path | |
services: | |
flood: | |
hostname: flood | |
image: jesec/flood:master | |
user: 0:0 | |
restart: unless-stopped | |
command: --port 3001 --allowedpath /data | |
environment: |
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
from collections import defaultdict | |
import re | |
from typing import Self | |
def error(*args) -> None: | |
print(*args) | |
exit(1) | |
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 matplotlib.pyplot as plt | |
import numpy as np | |
class Solution: | |
def __init__( | |
self, | |
a: float, | |
b: list[float], | |
c: list[float], |
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
#!/bin/sh | |
username="YOUR_USERNAME" | |
password="YOUR_PASSWORD" | |
content=$(curl -s "http://172.16.200.11") | |
# if [ $(echo "${content}" | hexdump -e '"%_p"' | grep -m 1 -o "tologin") ]; then | |
# echo "tologin" | |
# curl -d "DDDDD=${username}&upass=${password}&0MKKey=123" -s "http://172.16.200.11" > /dev/null | |
if [ ! "${content}" ]; then |
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
# See https://alist.nn.ci/guide/install/docker.html | |
# See the log output for the admin's info: `docker exec -it alist ./alist admin` | |
version: '3.3' | |
services: | |
alist: | |
restart: always | |
volumes: | |
- './config:/opt/alist/data' | |
- '/root/service/data:/data' | |
ports: |
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
services: | |
# See https://github.com/jesec/flood/discussions/120 | |
# Access Flood and register a user with `/config/.local/share/rtorrent/rtorrent.sock` rTorrent socket path | |
flood: | |
hostname: flood | |
image: jesec/flood:master | |
user: 0:0 | |
restart: unless-stopped | |
command: --port 3001 --allowedpath /data | |
environment: |
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
; Reference https://medium.com/@chrisdhanaraj/mapping-your-macos-keybinds-to-windows-b6009c50065b | |
; Option Key Shortcuts | |
<!BS::Send {LCtrl Down}{BackSpace}{LCtrl Up} | |
<!Left::Send {LCtrl Down}{Left}{LCtrl Up} |
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 datetime | |
import json | |
import os | |
import re | |
import subprocess | |
import sys | |
import textwrap | |
from typing import Self | |
OlderNewer