自动化框架selenium模块webdriver的使用 安装:安装selenium库 pip install selenium 安装各浏览器的驱动 Chrome(谷歌浏览器/谷歌内核浏览器)的web driver(chromedriver.exe)查看Chrome浏览器版本,ip窗口输入chrome://version/对应浏览器版本号下载(放在Chrome安装目录):http://chromedriver.storage.googleapis.co 2021-06-30 Python > selenium #Python #selenium #webdriver
Python项目打包生成exe 安装pyinstallerpip install pyinstaller 生成参数 参数名 描述 说明 -D 生成one-folder的程序(默认) 生成结果是一个目录,各种第三方依赖、资源和exe同时存储在该目录 -F 生成one-file的程序 生成结果是一个exe文件,所有的第三方依赖、资源和代码均被打包进该exe内 -o 指定.spec文件的存储路径 默认:当前目录 2021-06-30 Python > Pyinstaller #Python #Pyinstaller
Nginx申请免费SSL证书配置Https 申请证书:certbot命令申请免费的SSL证书并自动续期 配置SSL证书:进行nginx.conf配置 12345678910#更改listen 80;为listen 443 ssl;#后面添加ssl_certificate /etc/letsencrypt/live/inktea.xyz/fullchain.pem; #修改为fullchain.pem所在的路径ssl_certificate 2021-06-26 nginx > https #nginx
certbot命令申请免费的SSL证书并自动续期 申请证书安装snap命令(大部分系统自带无需安装) sudo apt-get install snapd 确保snap版本是最新的 sudo snap install core; sudo snap refresh core 删除Certbot -auto和任何Certbot操作系统包(如果安装了任何Certbot包) sudo apt-get remove certbot 安装Certbo 2021-06-26 SSL > certbot #certbot #SSL
KCPTun 手动部署安装 服务端安装:kcptun地址 https://github.com/xtaci/kcptun/releases 123456#创建kcptun目录mkdir /root/kcptuncd /root/kcptun#下载并解压对应32或者64位版本wget https://github.com/xtaci/kcptun/releases/download/v20210624/kcptun-linux 2021-06-24 KCPTun #KCPTun
使用KCPTun中转加速TCP 服务器安装:123#需要提前安装pipapt-get install -y python3-pippip install --upgrade pip 1234567# 适用于CentOS 7+ / Debian 8+ / Ubuntu 16+# 下载脚本文件wget --no-check-certificate https://github.com/kuoruan/shell-scripts/r 2021-06-23 KCPTun #KCPTun
Shadowsocks 一键安装脚本(四合一)版本 安装方法:使用root用户登录,运行以下命令: 1234567#适用于CentOS 6+,Debian 7+,Ubuntu 12+#下载4合1脚本文件wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shado 2021-06-23 Shadowsocks #Shadowsocks
docker-compose安装和使用 下载docker-compose:下载指定版本compose查看compose发布版本 sudo curl -L "https://github.com/docker/compose/releases/download/v2.4.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 2021-06-23 docker-compose #docker-compose
HTML 文件复用 问题:多个页面需要共用HTML时,避免重复复制粘贴 解决办法:使用使用jQuery的load函数 1234//导入html (如果影响其他js功能,就把load提出来)$(document).ready(function(){ $("#head").load("head.html");}); 123456789101112131415 2021-06-23 html #html
lua用pbc解析protobuf 不支持message嵌套 问题:protobuf.encode解析后的table 嵌套的message未解析 eg: 1234567table = { id: 2, message = { 1: "proto.test", --message名 2: "**********", --二进制文件 }} 解决办法:12345678910111 2021-06-22 lua > pbc #lua