Linux

selenium截图网站页面

from selenium import webdriver from selenium.webdriver.chrome.options import Options def get_image(url, pic_name): # chromedriver的路径 chromedriver = r"C:\Users\xx\Downloads\chromedriv...

mongodb 备份恢复

导出库 mongodump -h 192.168.3.26 --port 8635 -u user -p 'xxxx' --authenticationDatabase admin -d timedtask -o mongodb-arch-backup2020/ mongodump备份还原数据库 mongorestore -h 192.1...

Cnetos7升级内核

#cat /etc/redhat-release #uname -a 导入public key #rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org 安装ELRepo到CentOS 可以去http://elrepo.org/tiki/tiki-index.php选择要安装的ELRepo To i...

docker容器替换镜像源

Debian sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list Alpine sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories

GitLAb获取Tag发布信息非Release notes

jenkins pipeline构建发布之后发送发布信息到群通知机器人。提供git commit效果不是很好,最终通过Tag完成 获取TagMessage 非Release notes。如果获取Release notes可以通过API获取 git cat-file ...

hey压测工具安装

root@golan-hey-5f55dcc898-fl7bx:/go# go env -w GO111MODULE=on root@golan-hey-5f55dcc898-fl7bx:/go# go env -w GOPROXY=https://goproxy.cn,direct root@golan-hey-5f55dcc898-fl7bx:/go# go get -u githu...