12 2021 档案

python 编译反编译
摘要:def test(): print(1+1) if __name__ == '__main__': test() ''' pip install uncompyle6 编译 python -m py_compile test.py 生成test.pyc文件 反编译 uncompyle6 test.p 阅读全文

posted @ 2021-12-20 14:53 HHMLXL 阅读(198) 评论(0) 推荐(0) 编辑

python 代码逐行耗时分析
摘要:@profile def test(): print(1+1) if __name__ == '__main__': test() ''' pip install line_profiler kernprof -l -v test.py -l 逐行分析 -v 输出 Wrote profile res 阅读全文

posted @ 2021-12-20 14:43 HHMLXL 阅读(160) 评论(0) 推荐(0) 编辑

三剑客 grep sed awk
摘要:1.grep tail -1000 xxx.log|grep "key word"grep "key word" xxx.log grep 常用参数-i 忽略大小写-c 统计行数-v 显示不包含匹配文本的所有行-d或-r 对目录进行查询-o 只显示匹配的部分,配合正则使用-E 正则匹配 阅读全文

posted @ 2021-12-10 16:26 HHMLXL 阅读(27) 评论(0) 推荐(0) 编辑

docker 容器内部时间修改
摘要:修改某一进程调用的系统时间 对于容器内部来讲,修改容器内部时间是没有权限的,网上其他教程修改容器内时间会同宿主机时间修改, 影响其他容器,所以不可取, 1.libfaketime c库,github下载地址:https://github.com/wolfcw/libfaketime make&mak 阅读全文

posted @ 2021-12-07 16:55 HHMLXL 阅读(578) 评论(0) 推荐(0) 编辑

git常用命令
摘要:https://learngitbranching.js.org/ 学习git git diffgit diff --cached 查看已经暂存起来的变化 git log 比如你想看到每次提交的简略统计信息,可以使用 --stat 选项 /file_version_info.txt | 8 ++-- 阅读全文

posted @ 2021-12-06 14:01 HHMLXL 阅读(36) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示