刚开始我就在想如何获取总磁盘空间的大小呢?是df -h命令,把Size里所有的空间都相加?但是里面有挂载的一些目录也算进来,肯定不对。或者直接算/目录下的总大小?看似就是这样,但实际上是没有算进外挂的硬盘,也不对的。
分类:
系统相关 时间:
2020-11-13 12:29:31
阅读次数:
24
dt.Columns.Add("EffectiveDate", typeof(DateTime)); DateTime? effectivedate=null; if (lastRow["Effective_x0020_Date"] != DBNull.Value) { effectivedate ...
分类:
数据库 时间:
2020-11-12 13:57:50
阅读次数:
12
语法错误 "TypeError: Cannot read property 'resetFields' of undefined" 关键字前面的值变成了undefined property or method "isCollapse" is not defined on the instance b ...
分类:
其他好文 时间:
2020-11-10 11:13:58
阅读次数:
5
1.表单数据 { field: 'mainSupervision', align: 'center', title: '监督要点', formatter: function (value, row, index) { var html = $.common.sprintf("<input oncli ...
分类:
其他好文 时间:
2020-11-10 10:38:33
阅读次数:
3
今天我们的来宾帖子来自CoreOS的Brandon Phillips。CoreOS为Linux容器构建开源项目和产品。他们的共识和发现的旗舰产品ETCD和他们的集装箱发动机rkt 是gRPC的早期采用者。 CoreOS选择gRPC的主要原因之一是因为它使用HTTP / 2,从而使应用程序可以在单个T ...
#利用抓包工具,抓取需要cookie的网址一般cookie就在第一个post请求中,或与它挨着的地方里#网址就用浏览器的网址from urllib import requestfrom urllib import parse url='https://www.cnblogs.com/Eric-Z-H ...
分类:
其他好文 时间:
2020-11-08 17:51:35
阅读次数:
20
1 base64 的基本使用 import base64 with open('../static/upload/63bc620d1594779d6a98c53a3a8db1e5.png','rb') as f: data=f.read() encodesstr=base64.b64encode(d ...
分类:
其他好文 时间:
2020-11-08 17:03:35
阅读次数:
22
#!/bin/sh use=`df|grep "/dev/vdb1"|awk '{print $5}'| sed 's/%//g'` if [[ $use -gt 80 ]];then hdfs dfs -rm -r -skipTrash /user/admin/.flink fi; 先编写好she ...
分类:
系统相关 时间:
2020-11-08 16:52:29
阅读次数:
30
公司项目目前使用 SOA 架构(Service-oriented architecture:服务导向架构),每个服务作为一个单体对外提供接口,服务之间使用 GitHub OpenFeign 调用接口。 服务提供者正常提供接口,把需要暴露的接口封装为一个 client jar 包,服务调用者正常引入 ...
分类:
其他好文 时间:
2020-11-08 16:39:17
阅读次数:
16