摘要: <template> <div id="zptime"> {{setDate}} </div> </template> <script> export default { name: 'zptime', data() { return { date: new Date(), } }, compute 阅读全文
posted @ 2020-10-28 10:09 醒日是归时 阅读(1022) 评论(0) 推荐(0)
摘要: from Crypto.PublicKey import RSA from Crypto.Cipher import PKCS1_v1_5 as Cipher_pkcs1_v1_5 from Crypto.Signature import PKCS1_v1_5 as Signature_pkcs1_ 阅读全文
posted @ 2020-10-23 11:58 醒日是归时 阅读(6368) 评论(1) 推荐(0)
摘要: 主要就是增加数据约束的。在sqlite作为数据库时必须加上约束 Oracle中的约束简单介绍 约束 Including Constraints 在数据库中使用约束(constraints)是为了在该数据库中实施所谓的"业务规则"其实就是防止非法信息进入数据库,满足管理员和应用开发人员所定义的规则集. 阅读全文
posted @ 2020-10-19 16:55 醒日是归时 阅读(2897) 评论(0) 推荐(0)
摘要: 验证网页的正则表达式为: var regStr = "^((https|http|ftp|rtsp|mms)?://)?" //域名之前的协议字符串可以出现一次或不出现 + "(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?" 阅读全文
posted @ 2020-09-24 19:12 醒日是归时 阅读(396) 评论(0) 推荐(0)
摘要: 用requests.put上传文件 files = {'file':open(filepath,'rb').read()} rs = requests.put(url=url, headers=headers,files=files) 上传成功后,打开上传成功的文件,发现请求头被写进了文件 --7d 阅读全文
posted @ 2020-09-23 11:38 醒日是归时 阅读(1648) 评论(0) 推荐(0)
摘要: Grafana集成进自己的监控项目 可能有需求是将grafana的dashboard集成到自己的监控系统里面,这样就避免了进grafana再查看 方案有是有,可能有点不安全,建议实在要这么干的话: 尽量是公司内部玩,也就是纯内网操作; 找IT设置网络访问权限,只有公司IP可以访问监控系统和grafa 阅读全文
posted @ 2020-09-17 10:27 醒日是归时 阅读(4421) 评论(0) 推荐(0)
摘要: 列表解析——用来动态地创建列表 [expr for iter_var in iterable if cond_expr] 生成1-100以内的偶数 a3 = [x for x in range(1,101) if x % 2==0] print (a3) 输出结果: [2, 4, 6, 8, 10, 阅读全文
posted @ 2020-09-16 20:07 醒日是归时 阅读(278) 评论(0) 推荐(0)
摘要: 主要是以下几行内容 add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET,POST,OPTIONS'; add_header Access-Control-Allow-Header 阅读全文
posted @ 2020-09-11 16:19 醒日是归时 阅读(1282) 评论(0) 推荐(0)
摘要: 效果如图: js文件如下: $(function () { initTable() $('#load_vip').change(function () { $ .ajax({ type: 'POST', url: '/nginx/config/diff', data: {'load_vip': $( 阅读全文
posted @ 2020-09-08 21:01 醒日是归时 阅读(574) 评论(0) 推荐(0)
摘要: kubernetes API官方文档在github上经常打不开,于是就放在博客了,以下内容均复制于github All URIs are relative to http://localhost MethodHTTP requestDescription connect_delete_namespa 阅读全文
posted @ 2020-09-04 10:15 醒日是归时 阅读(2565) 评论(0) 推荐(0)