上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页
摘要: 1.用` `,(尖号)把命令括起来,然后赋值给变量 dir=`pwd` 2.采用 变量=$(pwd) dir=$(pwd) 阅读全文
posted @ 2020-07-14 18:11 远洪 阅读(221) 评论(0) 推荐(0)
摘要: 参考地址:https://www.cnblogs.com/liyuanhong/articles/13255681.html lsb_release -a ############## cat /etc/issue cat /etc/issue.net cat /etc/lsb-release ca 阅读全文
posted @ 2020-07-06 17:02 远洪 阅读(190) 评论(0) 推荐(0)
摘要: window.open(url,"_blank","") window.open(url,"_blank") window.open(url,"_blank").location window.open(url) 阅读全文
posted @ 2020-06-02 14:07 远洪 阅读(6364) 评论(0) 推荐(1)
摘要: 最近维护一台服务器,使用putty登录后,用vim时,鼠标右键不能 粘贴而是进入了visual模式。网上查找一番找到了解决方法: 方 法一:在普通模式下键入“ :set mouse-=a”(不包括引号) 方 法二:编辑 ~/.vimrc 文件,加入如下代码: if has('mouse') set 阅读全文
posted @ 2020-02-25 15:36 远洪 阅读(1098) 评论(0) 推荐(1)
摘要: 参考地址:https://blog.csdn.net/lyhDream/article/details/79342051 1、过滤返回内容包含某字符串 frame contains "xxxx" #或者 tcp contains "xxxx" #或者 http contains "xxxx" 2、地 阅读全文
posted @ 2020-02-23 23:25 远洪 阅读(3833) 评论(0) 推荐(0)
摘要: 1、启动kafka服务 bin/kafka-server-start.sh config/server.properties & 2、停止kafka服务 ./kafka-server-stop.sh 3、查看所有的话题 ./kafka-topics.sh --list --zookeeper loc 阅读全文
posted @ 2020-02-22 16:04 远洪 阅读(12020) 评论(3) 推荐(0)
摘要: 一、zookeeper的启动与关闭 #启动zookeeper ./zkServer.sh start #查看zookeeper运行状态 ./zkServer.sh status #停止zookeeper服务 ./zkServer.sh stop 二、zookeeper的链连接与退出 #连接zooke 阅读全文
posted @ 2020-02-20 22:36 远洪 阅读(7199) 评论(0) 推荐(0)
摘要: 请参考:https://www.cnblogs.com/liyuanhong/articles/12183279.html 使用wxpython做界面,可以使用绝对布局和Sizer 其中Sizer有分为以下几个布局管理器: 1.wx.BoxSizer 2.wx.StaticBoxSizer 3.wx 阅读全文
posted @ 2020-01-12 17:39 远洪 阅读(439) 评论(0) 推荐(0)
摘要: 一、encode与decode 1、bytes主要是给在计算机看的,string主要是给人看的 2、中间有个桥梁就是编码规则,现在大趋势是utf8 3、bytes对象是二进制,很容易转换成16进制,例如\x64 4、string就是我们看到的内容,例如'abc' 5、string经过编码encode 阅读全文
posted @ 2020-01-08 17:07 远洪 阅读(2734) 评论(0) 推荐(0)
摘要: 一、ASCII转换 获取字符的ascii值 获取ascii值对应的字符串 二、进制转换 十进制转16进制 十进制转8进制 十进制转二进制 16进制字符串转10进制 8进制字符串转10进制 2进制字符串转10进制 10进制字符串转10进制 阅读全文
posted @ 2020-01-08 16:04 远洪 阅读(6474) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页