上一页 1 2 3 4 5 6 7 8 ··· 23 下一页
摘要: 首先安装 pylint-django, $ sudo pip3 install pylint-django 然后设置 pylint 启动选项,如下图, (完) 阅读全文
posted @ 2022-04-12 10:47 Anonymous596 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 假设 share folder 名为 vbox_share, 则在虚拟机中使用以下命令即可, $ sudo mount -t vboxsf vbox_share /mnt (完) 阅读全文
posted @ 2022-04-11 23:15 Anonymous596 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 可以创建一个 pip.conf 文件,用于增加默认配置,例如,创建文件 /etc/pip.conf 并填入以下内容, [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host = http 阅读全文
posted @ 2022-03-23 15:59 Anonymous596 阅读(797) 评论(0) 推荐(0) 编辑
摘要: 安装 pylint 以后可以使用 pyreverse 生成 Python 代码库的 dot 文件,并且可以调用 graphviz 生成 png, pdf 等 $ sudo pip3 install pylint $ sudo pip3 install graphviz 下载 https://www. 阅读全文
posted @ 2022-03-22 13:15 Anonymous596 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 给每个 log 文件第一行插入 hello world, $ find . -name '*.log' | xargs sed -i '1 i\hello world' 给每个 log 文件匹配模式 bcd (可以使用其他正则表达例如 \w+\d+\w+ etc.) 行之前插入 hello worl 阅读全文
posted @ 2022-03-03 19:41 Anonymous596 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Create a shell script such as 'suspend.sh', fill with following contents, #!/bin/sh echo your_root_password | sudo systemctl suspend make it executabl 阅读全文
posted @ 2022-01-03 13:18 Anonymous596 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 问题 CentOS 7 默认安装的 nginx 依赖 openssl 版本为 v1.0.2k (需要手动安装最新版 nginx v1.20.2,支持openssl v1.0.2+) uwsgi 默认依赖的 openssl 版本为 v1.1.1 mycli (cryptography,这个库在 par 阅读全文
posted @ 2021-12-14 15:00 Anonymous596 阅读(1401) 评论(0) 推荐(0) 编辑
摘要: 通过 ssh 登录 petalinux, (在不能通过串口登录的情况下) ssh-keygen -f "/home/rescure/.ssh/known_hosts" -R 192.168.2.10 ssh root@192.168.2.10 (完) 阅读全文
posted @ 2021-12-10 19:42 Anonymous596 阅读(290) 评论(0) 推荐(0) 编辑
摘要: Download https://www.mongodb.com/try/download/community Python Driver https://pypi.org/project/pymongo/ $ sudo pip install -i https://pypi.douban.com/ 阅读全文
posted @ 2021-11-20 20:05 Anonymous596 阅读(36) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 18.04 $ sudo pip install backports.lzma CentOS 7 $ sudo yum install xz-devel $ sudo yum install python-backports-lzma $ sudo pip install backpo 阅读全文
posted @ 2021-11-15 10:32 Anonymous596 阅读(562) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 23 下一页