2022年4月23日

ARM64 安装 HomeAssistant Supervisor

摘要: ref: https://github.com/home-assistant/supervised-installer 环境:Debian Debian GNU/Linux 11 \n \l 安装步骤 安装依赖 apt-get install \ jq \ wget \ curl \ udisks2 阅读全文

posted @ 2022-04-23 21:46 BionExit 阅读(2112) 评论(0) 推荐(0)

2021年12月3日

满足千分位分隔符、普通数据的正则表达式

摘要: ^(\d{1,3}((((,|,)\d{3})*)|\d+))(\.\d+)?$ 分隔符适配半角、全角逗号 匹配 32,324.0000 123,456.1234 123,456 123456 123456.000 不匹配 1234,00.00 1244,123.00 1234,1234.00 RE 阅读全文

posted @ 2021-12-03 11:03 BionExit 阅读(224) 评论(0) 推荐(0)

2021年11月9日

Expect+Crontab 定时重启山石防火墙

摘要: expect 安装expect yum install expect expect说明 shell脚本 存储位置/usr/etc/script/test.sh #!/usr/bin/expect -f spawn ssh [YOUR_USER_NAME]@[YOUR_DEVICE_IP] expec 阅读全文

posted @ 2021-11-09 12:29 BionExit 阅读(264) 评论(0) 推荐(0)

2021年9月26日

MacOS系统使用Homebrew官方地址报错

摘要: MacOS系统使用Homebrew官方地址时,报错: ds@Macintosh ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" curl: (35) 阅读全文

posted @ 2021-09-26 12:12 BionExit 阅读(48) 评论(0) 推荐(0)

2021年9月6日

privoxy代理服务器配置

摘要: [root@MiWiFi-R1CM-srv ~]# yum install privoxy [root@MiWiFi-R1CM-srv privoxy]# cd /etc/privoxy/ [root@MiWiFi-R1CM-srv privoxy]# touch pac.action [root@ 阅读全文

posted @ 2021-09-06 11:12 BionExit 阅读(1131) 评论(0) 推荐(0)

2021年8月20日

Nginx 反向代理 502 permission denied 解决

摘要: 环境 centos 7.6 nginx version: nginx/1.20.1 nginx 代理 8989 流量到 IP:8081 现象 在完成Nginx反向代理配置后,/var/log/nginx/error.log报错 2021/08/20 16:23:52 [crit] 11490#114 阅读全文

posted @ 2021-08-20 16:59 BionExit 阅读(733) 评论(1) 推荐(0)

2021年5月16日

Deccoration Concepts

摘要: Living room 阅读全文

posted @ 2021-05-16 21:03 BionExit 阅读(28) 评论(0) 推荐(0)

2021年5月15日

Python Logger类,保存本地文件并在console打印

摘要: import logging import time import os class Logger: def __init__(self, logger_name): # 创建一个logger self.logger = logging.getLogger(logger_name) self.log 阅读全文

posted @ 2021-05-15 20:44 BionExit 阅读(491) 评论(0) 推荐(0)

Python 通过Request上传(form-data Multipart)\下载文件

摘要: 下载文件 import os import requests base_dir = os.path.abspath(os.path.dirname(__file__)) file_path = os.path.join(base_dir, 'FileDownload', time.strftime( 阅读全文

posted @ 2021-05-15 20:20 BionExit 阅读(891) 评论(0) 推荐(0)

2021年5月10日

正则表达式

摘要: (?<=成交金额:)(\d+)(,\d+)*\.*(\d)*(?=\元) 352,000 [1-9]\d*.\d*|0.\d*[1-9]\d* 352,000 [\u4e00-\u9fa5]*$ 元 [\u4e00-\u9fa5]{2,} 中标金额 天津市第二人民医院医疗设备项目(项目编号:TGPC 阅读全文

posted @ 2021-05-10 11:08 BionExit 阅读(27) 评论(0) 推荐(0)

导航