会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
绣幕
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2022年7月5日
echo
摘要: shell 小记 # 结果就挺奇怪的 [root@localhost tests]# md5sum 1 c3be117041a113540deb0ff532b19543 1 [root@localhost tests]# echo `md5sum 1` c3be117041a113540deb0ff
阅读全文
posted @ 2022-07-05 00:22 绣幕
阅读(89)
评论(0)
推荐(0)
2022年6月18日
rpm 系 linux 系统中 /etc/yum.repo.d/ 目录下的 .repo 文件中的 $releasever 到底等于多少?
摘要: rpm 系 linux 系统中 /etc/yum.repo.d/ 目录下的 .repo 文件中的 $releasever 到底等于多少? 结论 对于 8 来说,通过以下命令 #/usr/libexec/platform-python -c 'import dnf, json; db = dnf.dn
阅读全文
posted @ 2022-06-18 11:36 绣幕
阅读(790)
评论(0)
推荐(0)
2022年5月25日
记录一个奇葩 bug [Failed to decode JSON object: Expecting value: line 1 column 1 (char 0)]
摘要: 关于 flask 的一个记录 代码 @auth.login_required @app.route('/add', methods=['POST']) def add(): if request.method != 'POST': return False print(request.json) r
阅读全文
posted @ 2022-05-25 22:04 绣幕
阅读(874)
评论(0)
推荐(0)
2022年4月12日
shell 问题记录
摘要: 工作中写了个 RestAPI 接口,然后想通过 crontab 任务,去定时调用接口。发现去拼接 post 请求真的不容易。对于单引号,双引号的使用。很懵,示例代码如下:对于 '$line' 处,单引号会原封不动地输出,所以会变成"name":"a",json 里的内容为双引号,才能正常去发一个 p
阅读全文
posted @ 2022-04-12 23:31 绣幕
阅读(44)
评论(0)
推荐(0)
2022年4月7日
logging模块学习
摘要: 参考链接: https://docs.python.org/zh-cn/3/library/logging.html?highlight=logging#levels logrecord参考 常用配置 import logging logging.basicConfig(format='%(asct
阅读全文
posted @ 2022-04-07 23:01 绣幕
阅读(25)
评论(0)
推荐(0)
2022年3月6日
re学习笔记
摘要: re学习笔记 学习链接: https://regexlearn.com/zh-cn/learn \w: 数字字母下划线 \W: 非\w \d \D: !\d \s: space cha \S: !\s #正向先行断言 仅匹配3 Date: 4 Aug 3PM \d+(?=PM) 3 #负向先行断言
阅读全文
posted @ 2022-03-06 00:11 绣幕
阅读(72)
评论(0)
推荐(0)
2022年2月27日
make 随笔
摘要: # --with--cc-opt flag导致./configure时找不到对应库文件? checking for --with-ld-opt="-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-E"
阅读全文
posted @ 2022-02-27 20:51 绣幕
阅读(184)
评论(0)
推荐(0)
2022年2月12日
VMware 安装 Anolis OS
摘要: 安装时参考的以下文章 VMware Workstation Pro 虚拟机安装 VMware Workstation Pro 安装 龙蜥操作系统(Anolis OS) Anolis OS 8 安装指南 ps: 启动虚拟机时报错 此主机支持Intel VT-x但Intel VT-x处于禁用状态 。我是
阅读全文
posted @ 2022-02-12 23:16 绣幕
阅读(1437)
评论(0)
推荐(0)
2021年11月26日
pip常用命令
摘要: pip install [库名]==【版本号】 -i https://pypi.tuna.tsinghua.edu.cn/simple pip install -r request.txt pip uninstall -y -r request.txt pip freeze all >request
阅读全文
posted @ 2021-11-26 21:52 绣幕
阅读(136)
评论(0)
推荐(0)
2021年11月8日
linux-rpm
摘要: #rpm构建 linux distribution linux发行版 ##tarball 为了减少网络资源浪费,将源码进行压缩,tar --> gzip == tar.gz ##gcc gcc hello.c 默认生成a.out ./a.out执行 gcc -c hello.c 生成hello.o
阅读全文
posted @ 2021-11-08 23:12 绣幕
阅读(34)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告