使用crontab定时执行 #!/usr/bin/env python # coding=utf-8 from aliyunsdkcore.client import A…
使用aliyun-sdk开发的一个解析管理小工具
安装aliyunSDK核心库: python2:pip install aliyun-python-sdk-core  …
telegram 常用接口
# 设置webhook # https://api.telegram.org/bot<token>/setWebhook?url=<api_url> # 查询webh…
python 杂记
import os,sys,ssl pid = os.fork() if pid: sys.exit(0) import ssh_terminal sessio…
python-socket:一个简易的tcp服务器
# -*- coding: utf-8 -*- import socket # 导入 socket 模块 from&n…
Certbot:申请免费的域名证书
安装: yum install certbot yum install python2-certbot-nginx 命令: certbot certonly -…
expect:Linux Shell 自动化时的交互
安装: yum install expect 一个简单的文件同步脚本: #!/usr/bin/expect set timeout 1 spawn rsync…
Uwsgi:常用PythonWeb-Nginx部署方法
Flask: Uwsgi配置:使用socket [uwsgi] socket = :8081 wsgi-file=/home/python/flask/index.py chdir =&nb…
WordPress 块编辑器 gutenberg 特色图片设置为必填
修改2个文件: 1. wp-includes\rest-api\endpoints\class-wp-rest-posts-controller.php 在 方法publi…