基础命令 #查看系统configgit config --system --list #查看当前用户(global)配置git config --global --list 当你安装Git后首先要做的事情是设置你的用户名称和e-mail地址。这是非常重要的,因为每次Git提交都会使用该信息。它被永远 ...
分类:
其他好文 时间:
2021-07-05 16:58:20
阅读次数:
0
现在主流监控软件和云平台提供的流量监控,监控粒度最小只能设置为1分钟,无法准确定位故障,特别是瞬时突发较大的业务 对比python的snmp库还是更喜欢用subprocess调用snmpwalk命令,脚本如下,前端可以使用脚本采集到的数据进行绘图 1 #! /usr/bin/env python 2 ...
分类:
其他好文 时间:
2021-07-05 16:57:15
阅读次数:
0
1.问题: Warning: Permanently added 'github.com' (RSA) to the list of known hosts. git@github.com: Permission denied (publickey). fatal: Could not read f ...
分类:
其他好文 时间:
2021-07-05 16:56:22
阅读次数:
0
#include <stdio.h> #include <string.h> int * getarr(int * ipt); int main() { int a = 99; char * ch ; int *p = getarr(&a); //gets(ch); printf("%d\n", * ...
分类:
其他好文 时间:
2021-07-05 16:56:01
阅读次数:
0
1、设置加速,修改/etc/apt/sources.list如下 deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi deb-src http://mirrors.tu ...
分类:
其他好文 时间:
2021-07-05 16:54:39
阅读次数:
0
高级权限-ACL 一、文件权限管理四:ACL 用命令setfacl设置的ACL(Access Control List) 权限是UGO权限的扩展,ACL可以针对单一用户、单一文件或目录来进行r,w,x的权限控制,对于需要特殊权限的使用状况有一定帮助。 文件一旦设置了acl权限后,查看信息会出现一个加 ...
分类:
其他好文 时间:
2021-07-05 16:51:23
阅读次数:
0
最近有项目需要去某个文件夹里面,获取所有XML文件,然后从XML文件中查找特定节点中查找是否有特定信息。 为了便于获取所有文件信息,直接用bat文件每天自动运行生成一个文件列表list信息供查看。 cd /d %~dp0 dir /s /b *.* > FileList.txt 所以接下来要做的事情 ...
分类:
编程语言 时间:
2021-07-05 16:50:22
阅读次数:
0
python-迭代器生成器 python 三大利器, 迭代器,生成器和装饰器 迭代是Python中常用且非常强大的一个功能,可以被for循环的就是可迭代的,目前有字符串,列表,元组,字典,集合。 通过使用两个单独方法来实现的;它们被用于允许用户自定义类对迭代的支持。 可迭代对象iterable 是P ...
分类:
编程语言 时间:
2021-07-05 16:49:24
阅读次数:
0
1.需要在联网的linux环境下下载好所需要的包 /root/temp 目录 pip3 download impala -d /root/temp pip3 download impyla -d /root/temp 2.下载之后的包 3.然后拷贝到离线的环境下 执行 pip3 install安装所 ...
分类:
编程语言 时间:
2021-07-05 16:41:50
阅读次数:
0
namespace 解析数字开头的变量JSON { class Program { static void Main(string[] args) { string strJson = "{\"1st_attempt\":\"2021-02-09 16:32:15\",\"2nd_attempt\" ...