/imgs/avatar.webp

Codee的博客

docker编译openwrt

1 docker编译官方openwrt 1.1 准备编译环境 docker提供环境: https://github.com/mwarning/docker-openwrt-build-env Dockerfile 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 FROM debian:buster RUN apt-get update &&\ apt-get install -y \ sudo time git-core subversion

Python的selenium用ddddocr做验证码识别

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 from selenium import webdriver from selenium.webdriver.common.by import By from PIL import Image from io import BytesIO driver = webdriver.Chrome() driver.maximize_window() def checkCode(img): img = Image.open(BytesIO(img)) ocr = ddddocr.DdddOcr() code_text = ocr.classification(img) img.save(code_text + ".png", "PNG") # 保存验证码到本地,可

小米路由器BE7000将docker命令添加到环境变量

1 添加docker命令到当前终端进入终端,执行以下命令 1 2 3 4 5 DEVICE_UUID=$(uci -q get mi_docker.settings.device_uuid) STORAGE_DIR=$(storage dump | grep -C3 "${DEVICE_UUID:-invalid-uuid}" | grep target: | awk '{print $2}') DOCKER_DIR="${STORAGE_DIR:=/not_exist_disk}/mi_docker" DOCKER_BIN="$DOCKER_DIR/docker-binaries" export PATH=$PATH:$DOCKER_BIN 然后你就能使用docker命令了 2