上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 42 下一页

2019年9月10日

查看现有的 cipher suite

摘要: openssl ciphers [-v] [-ssl2] [-ssl3] [-tls1] [cipherlist] 阅读全文

posted @ 2019-09-10 18:38 liujx2019 阅读(911) 评论(0) 推荐(0) 编辑

2019年8月23日

Makefile: missing separator(did you mean TAB instead of 8 spaces?). Stop.

摘要: 通常我们会对vimrc文件加以配置(如将TAB键自动转换为4个空白键)。但正是由于将tab键转换为n个空白键,使得用vim编写的Makefile中不存在tab键(即“\t”)了。恰恰Makefile中以tab键作为命令行的起始标记。所以现在找到了报错的原因,即tab键被替换为空白键了。解决方法是:在 阅读全文

posted @ 2019-08-23 16:44 liujx2019 阅读(3486) 评论(0) 推荐(0) 编辑

[Linux] 检查是否已有进程在运行

摘要: 出处:sblim-sfcb-1.4.9 / sfcBroker.c 阅读全文

posted @ 2019-08-23 15:18 liujx2019 阅读(423) 评论(0) 推荐(0) 编辑

2019年8月14日

Python 删除含有只读文件(夹)的文件夹

摘要: def rm_read_only(fn, tmp, info): if os.path.isfile(tmp): os.chmod(tmp, stat.S_IWRITE) os.remove(tmp) elif os.path.isdir(tmp): os.chmod(tmp, stat.S_IWRITE) sh... 阅读全文

posted @ 2019-08-14 16:47 liujx2019 阅读(1077) 评论(0) 推荐(1) 编辑

2019年8月7日

python字符串 提取括号中的内容

摘要: 返回值是一个列表 阅读全文

posted @ 2019-08-07 09:54 liujx2019 阅读(14691) 评论(0) 推荐(0) 编辑

Python获取当前 年 月 日

摘要: import datetime datetime.datetime.now().year datetime.datetime.now().month datetime.datetime.now().day 阅读全文

posted @ 2019-08-07 09:51 liujx2019 阅读(2507) 评论(0) 推荐(0) 编辑

2019年8月3日

Python 如何实现 单实例

摘要: 出处:https://stackoverflow.com/questions/380870/make-sure-only-a-single-instance-of-a-program-is-running https://pypi.org/project/tendo/#files 阅读全文

posted @ 2019-08-03 13:07 liujx2019 阅读(204) 评论(0) 推荐(0) 编辑

2019年8月2日

[Ubuntu ] Vim Error E492 - Not an editor command: PluginInstall

摘要: https://stackoverflow.com/questions/30017366/vim-error-e492-not-an-editor-command-plugininstall 阅读全文

posted @ 2019-08-02 10:01 liujx2019 阅读(1431) 评论(0) 推荐(0) 编辑

2019年7月31日

Python 如何写 Ubuntu syslog

摘要: address='/dev/log' 是关键 import logging from logging.handlers import SysLogHandler logger = logging.getLogger() logger.setLevel(logging.INFO) syslog = SysLogHandler(address='/dev/log') formatter = log... 阅读全文

posted @ 2019-07-31 14:58 liujx2019 阅读(176) 评论(0) 推荐(0) 编辑

2019年7月29日

[Python] bytes 转换成 str

摘要: b = b"example" # bytes object s = "example" # str object sb = bytes(s, encoding = "utf8") # str to bytes 或者:sb = str.encode(s) # str to bytes bs = str(b, encoding = "utf... 阅读全文

posted @ 2019-07-29 10:44 liujx2019 阅读(2875) 评论(0) 推荐(0) 编辑

上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 42 下一页

导航