摘要: 1、转换python字典类型为dataframe # !/usr/bin/env python # -*- coding:utf-8 -*- # __author__ = # pandas >= 1.5.3 import pandas as pd pydict = {'Dosage': '1.1.1 阅读全文
posted @ 2024-03-27 11:14 風£飛 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 1、BCLinux卸载license模块 rpm -qa | grep license rpm -e --nodeps bclinux-license-manager-4.0-1.oe1.bclinux.x86_64 --noscripts yum clean all && yum makecach 阅读全文
posted @ 2024-01-30 11:27 風£飛 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 网络流量实时速率是如何计算的? 首先我们要知道网络流量实时带宽是如何计算出来的,我们先拿接口流入流量来举例子。通过SNMP的ifInOctets键值,我们可以获取到接口流入数据量的累计总量。那么如果我们想要计算流入流量的带宽速率,只需要固定一个时间间隔(比如30s),在前后分别获取一次累计总量,再计 阅读全文
posted @ 2023-11-07 09:36 風£飛 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 1、zmail发送邮件脚本 # !/usr/bin/env python # -*- coding:utf-8 -*- # __author__ = # https://www.jianshu.com/p/b9e11dbbc9cf # https://github.com/zhangyunhao11 阅读全文
posted @ 2023-10-08 13:58 風£飛 阅读(38) 评论(0) 推荐(0) 编辑
摘要: # 临时指定一下国内源 pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple netmiko # 升级(如果之前已经装了老版本) pip3 install netmiko -U #!/bin/python # -*- coding:UTF- 阅读全文
posted @ 2023-09-25 10:32 風£飛 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1、生成服务器私钥 openssl genrsa -out server.key 2048 2、根据服务器私钥文件生成证书请求文件,这个文件中会包含申请人的一些信息,所以执行下面这行命令过程中需要用户在命令行输入一些用户信息,随便填写,一路回车即可 openssl req -new -key ser 阅读全文
posted @ 2023-09-25 09:56 風£飛 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 将博客搬至CSDN 阅读全文
posted @ 2023-09-21 15:42 風£飛 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、执行原生SQL from sqlalchemy import create_engine, text # 创建engine对象 engine = create_engine("sqlite:///demo.db", echo=False) with engine.connect() as con 阅读全文
posted @ 2023-09-07 15:56 風£飛 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 1、html模板 <!DOCTYPE html> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <html align='left'> <h1>巡检报告</h1> <body> <h2>报告综述</h2> <p> 阅读全文
posted @ 2023-09-01 15:04 風£飛 阅读(70) 评论(0) 推荐(0) 编辑
摘要: #!/bin/python # -*- coding: utf-8 -*- import pandas as pd import requests, time, re def getcolumn(status, x): if float(status) < 80: return "正常" # eli 阅读全文
posted @ 2023-08-28 17:25 風£飛 阅读(64) 评论(0) 推荐(0) 编辑