07
07/22
docker布署clash
docker run --name=clash -d -p 7890:7890 9090:9090 -v /root/clash/config.yaml:/root/.config/clash/config.yaml dreamacro/clash
07
07/22
利用clash restapi实现节点切换
import random from utils importHttpUtil fromConfigimportConfig import json classProxyUtil: http =HttpUtil() def __init__(self): pass @staticmethod def get_proxies(): res = json.loads(ProxyUtil.http.getString(Config.proxy_url +"/proxies")) # print(res) proxies = res["proxies"] print(proxies) return proxies pass @staticmethod def get_nodes(): res = json.loads(ProxyUtil.http.getString(Config.proxy_url +"/proxies")) # print(res) proxies = ...
06
07/22
docker容器安装jupyter notebook(安装、配置、修改全过程)
docker run -d -p 8888:8888 -v /root/notbook/work:/home/jovyan/work --name notbook jupyter/minimal-notebook