随笔分类 -  scripts

the scripts of works
摘要:1、安装 sudo apt-get install stress sudo apt-get install stress-ng 2、查看cpu,内存,硬盘方法 # 查看cpu个数 cat /proc/cpuinfo # 查看内存大小 cat /proc/meminfo # 查看磁盘大小 df -h 阅读全文
posted @ 2022-10-01 16:24 代码诠释的世界 阅读(14626) 评论(0) 推荐(0) 编辑
摘要:1、问题 使用netstat报错command not found 2、处理 主要是因为没有安装 yum install net-tools 参考链接: https://blog.csdn.net/huangbaokang/article/details/88417221 阅读全文
posted @ 2022-10-01 16:03 代码诠释的世界 阅读(684) 评论(0) 推荐(0) 编辑
摘要:1、安装 sudo apt-get update sudo apt-get install -y linux-tools-$(uname -r) sudo apt-get install stress 2、命令介绍 stress --help `stress' imposes certain typ 阅读全文
posted @ 2022-10-01 15:28 代码诠释的世界 阅读(6692) 评论(0) 推荐(0) 编辑
摘要:1、 kubeasz https://github.com/easzlab/kubeasz 2、文档 https://github.com/easzlab/kubeasz/tree/master/docs 3、quickstart https://github.com/easzlab/kubeasz 阅读全文
posted @ 2022-09-07 18:04 代码诠释的世界 阅读(1126) 评论(0) 推荐(0) 编辑
摘要:1、问题 配置静态IP时,报错Failed to restart network.service: Unit network.service not found. 2、解决办法 sudo apt-get install network-manager 参考链接: https://blog.csdn. 阅读全文
posted @ 2022-08-29 14:37 代码诠释的世界 阅读(4160) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://kubernetes.io/zh-cn/ 2、github https://github.com/kubernetes/kubernetes 3、文档 Kubernetes Documentation | Kubernetes 二进制下载 Download Kubernet 阅读全文
posted @ 2022-08-29 11:38 代码诠释的世界 阅读(1055) 评论(0) 推荐(0) 编辑
摘要:1、pypi https://pypi.org/project/psutil/ 2、github https://github.com/giampaolo/psutil 3、doc https://psutil.readthedocs.io/en/latest/ 4、获取chromedriver.e 阅读全文
posted @ 2022-08-24 16:30 代码诠释的世界 阅读(1435) 评论(0) 推荐(0) 编辑
摘要:1、环境 OSX 12.5 Java8 vscode 2、脚本 JavaCvCameraTest.java import javax.swing.JFrame; import org.bytedeco.ffmpeg.global.avcodec; import org.bytedeco.javacp 阅读全文
posted @ 2022-08-24 15:35 代码诠释的世界 阅读(1538) 评论(0) 推荐(0) 编辑
摘要:1、环境 python3 OSX 12.5 vscode 2、安装ffmpeg brew install ffmpeg 3、安装cv2 pip install opencv-python # or pip --default-timeout=100 install opencv-python -i 阅读全文
posted @ 2022-08-24 14:43 代码诠释的世界 阅读(4145) 评论(0) 推荐(0) 编辑
摘要:1、安装ffmpeg brew install ffmpeg 2、查看本机设备 ffmpeg -devices % ffmpeg -devices ffmpeg version 5.1 Copyright (c) 2000-2022 the FFmpeg developers built with 阅读全文
posted @ 2022-08-24 14:27 代码诠释的世界 阅读(2053) 评论(0) 推荐(0) 编辑
摘要:1、报错 2、修改IDEA配置 重新打开项目 参考链接: https://blog.csdn.net/liveforyourself/article/details/122059698 阅读全文
posted @ 2022-08-23 16:21 代码诠释的世界 阅读(513) 评论(0) 推荐(0) 编辑
摘要:1、使用os.popen 2、使用os.system 3、使用subprocess.Popen 参考链接: https://blog.csdn.net/weixin_43276033/article/details/125481262 https://blog.csdn.net/sirobot/ar 阅读全文
posted @ 2022-08-22 11:20 代码诠释的世界 阅读(31) 评论(0) 推荐(0) 编辑
摘要:1、使用国内的镜像地址 https://registry.npmmirror.com/binary.html?path=chromedriver/ 2、通过simulation模拟用户点击来下载(只贴出部分方法) #!/usr/bin/env python # -*- coding:utf-8 -* 阅读全文
posted @ 2022-08-19 20:49 代码诠释的世界 阅读(276) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://pypi.org/project/requests-html/ 2、github https://github.com/kennethreitz/requests-html 3、安装 pip install requests-html 4、使用HTMLSession hea 阅读全文
posted @ 2022-08-19 14:03 代码诠释的世界 阅读(781) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://beautifulsoup.readthedocs.io/zh_CN/v4.4.0/ 2、安装 pip install BeautifulSoup4 pip install lxml pip install requests 3、解析脚本 import requests f 阅读全文
posted @ 2022-08-19 13:50 代码诠释的世界 阅读(153) 评论(0) 推荐(0) 编辑
摘要:1、pip install BeautifulSoup报错 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting BeautifulSoup Using cached https://pypi.tuna.tsi 阅读全文
posted @ 2022-08-18 11:58 代码诠释的世界 阅读(773) 评论(0) 推荐(0) 编辑
摘要:1、打开powershell(管理员) 2、查看所有端口连接 3、查看端口进程及PID 4、获取指定PID的进程名称 5、根据PID杀死进程 检查 至此完成 阅读全文
posted @ 2022-08-15 17:36 代码诠释的世界 阅读(607) 评论(0) 推荐(0) 编辑
摘要:1、场景 远程更新产品版本 2、处理方法 sudo apt-get install expect 参考链接: https://www.codeleading.com/article/80902740372/ 阅读全文
posted @ 2022-08-14 15:38 代码诠释的世界 阅读(630) 评论(0) 推荐(0) 编辑
摘要:1、场景 只有一级目录 2、批处理脚本 CHCP 65001 @ECHO OFF ECHO "####################################################" ECHO "# Subject: update git repo #" ECHO "# Date: 阅读全文
posted @ 2022-08-02 14:50 代码诠释的世界 阅读(382) 评论(0) 推荐(0) 编辑
摘要:空了再写 参考链接: https://blog.csdn.net/zyndev/article/details/113888620 阅读全文
posted @ 2022-08-01 14:56 代码诠释的世界 阅读(51) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示