摘要: import time import csv from playwright.sync_api import Playwright, sync_playwright with sync_playwright() as playwright: browser = playwright.chromium 阅读全文
posted @ 2024-04-01 18:16 hziwei 阅读(1) 评论(0) 推荐(0) 编辑
摘要: from typing import Tuple import pyperclip import pyautogui import cv2 import numpy as np class Gui(object): ''' pyautogui 操作 ''' @classmethod def find 阅读全文
posted @ 2024-04-01 18:15 hziwei 阅读(2) 评论(0) 推荐(0) 编辑
摘要: * 创建会话 > :使用命令“screen -S RunWork”来创建一个screen会话,命令执行之后,就会得到一个新的shell窗口,为了便于标示可以用快捷键Ctrl-a A(就是按下Ctrl+a键,然后按下shift+a),这样窗口上光标会提示给窗口重命名。输入名称“RunWorkWindo 阅读全文
posted @ 2023-06-13 16:56 hziwei 阅读(35) 评论(0) 推荐(0) 编辑
摘要: ## 命令 ``` # scp -i 密钥 本地地址 远程地址 scp -i ~/.ssh/pub.pem -r folder root@100.100.0.100 ``` ## 说明 ``` -1: 强制scp命令使用协议ssh1 -2: 强制scp命令使用协议ssh2 -4: 强制scp命令只使 阅读全文
posted @ 2023-06-05 17:58 hziwei 阅读(4) 评论(0) 推荐(0) 编辑
摘要: * script.sh ``` root_dir=$(cd $(dirname $0); pwd) cd $(dirname "$root_dir") ``` 阅读全文
posted @ 2023-06-05 15:40 hziwei 阅读(2) 评论(0) 推荐(0) 编辑
摘要: C代码 文件名 《task.c》 # include<stdio.h> int task(int n, int p, int m){ int i,j,k; unsigned long s = 0; for(i=0;i<n;i++){ for(j=0;j<p;j++){ for(k=0;k<m;k++ 阅读全文
posted @ 2023-05-04 17:32 hziwei 阅读(32) 评论(0) 推荐(0) 编辑
摘要: ## 一、NVM简介 NVM 全称 Node Version Manager,是一个管理 NodeJS 版本的工具。 NVM 默认只支持 Linux 和 OS X,不支持 Windows windows使用nvm-windows(https://github.com/coreybutler/nvm- 阅读全文
posted @ 2023-01-30 09:40 hziwei 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 一、代码 import os import random import logging import sentry_sdk from sentry_sdk.tracing import Transaction from sentry_sdk.integrations.logging import L 阅读全文
posted @ 2022-12-07 14:24 hziwei 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 一、下载项目 git clone https://github.com/getsentry/self-hosted 二、安装 1、安装docker和docker-compose 2、运行sentry 安装脚本脚本 ./install.sh # 或者 ./install.sh --skip-user- 阅读全文
posted @ 2022-11-21 10:36 hziwei 阅读(670) 评论(0) 推荐(0) 编辑
摘要: 一、步骤 1、镜像基础 2、复制代码 3、设置工作目录 4、把需要执行的shell命令编写成脚本文件 5、配置容器启动自动执行脚本,CMD在docker run时运行脚本 DockerFile 脚本 # 基于镜像基础 FROM python:3.7.9 # 复制⽂件到容器中 COPY ./src / 阅读全文
posted @ 2022-09-06 10:54 hziwei 阅读(765) 评论(0) 推荐(0) 编辑