上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 87 下一页
该文被密码保护。 阅读全文
posted @ 2023-10-19 14:32 lshan 阅读(1) 评论(0) 推荐(0)
摘要: python dict和ttl支持自动过期缓存 github: https://github.com/mailgun/expiringdict 安装 pip install expiringdict pip install expiring-dict 使用: from expiringdict im 阅读全文
posted @ 2023-10-08 15:29 lshan 阅读(615) 评论(0) 推荐(0)
摘要: 官网: https://www.elastic.co/guide/en/beats/filebeat/8.10/index.html https://www.elastic.co/guide/en/beats/filebeat/8.10/running-on-docker.html 1. 拉取镜像 阅读全文
posted @ 2023-10-07 18:51 lshan 阅读(691) 评论(0) 推荐(1)
摘要: 查询网卡状态 [root@localhost ~]# nmcli device status DEVICE TYPE STATE CONNECTION ens33 ethernet unmanaged -- lo loopback unmanaged -- 上面状态提示未接管 开启网络 [root@ 阅读全文
posted @ 2023-09-14 13:17 lshan 阅读(673) 评论(0) 推荐(1)
摘要: # pip install pysftpimport pysftpclass SftpUtil(object): def __init__(self, host, port, username, password): self.host = host self.port = port self.us 阅读全文
posted @ 2023-08-10 13:18 lshan 阅读(85) 评论(0) 推荐(0)
摘要: 1. 在 https://tool.chinaz.com/dns?type=a&host=github.com&ip= 修改hosts 108.177.97.100 translate.googleapis.com 20.205.243.166 github.com 阅读全文
posted @ 2023-07-20 14:25 lshan 阅读(151) 评论(0) 推荐(0)
摘要: pip freeze > requirements.txt 编写dockerfile,需要注意的是这里安装了一些c++库文件供opencv使用 Dockerfile: FROM python:3.9-slim # 将工作目录设置为 当前目录 WORKDIR /opt/app/ # 将当前目录内容复制 阅读全文
posted @ 2023-06-28 10:32 lshan 阅读(235) 评论(0) 推荐(0)
摘要: 1.安装以及使用: # 安装 (添加用户名密码,见下面) sudo mkdir /opt/docker/registry sudo docker run -itd --privileged=true --restart=always -e REGISTRY_STORAGE_DELETE_ENABLE 阅读全文
posted @ 2023-06-27 18:23 lshan 阅读(675) 评论(0) 推荐(0)
摘要: windows 下 Python 多环境隔离,每个项目拥有独立的依赖库,即 site-packages。 ubuntu 下通过 Anaconda 进行多环境操作, windows 下往往直接下载安装包安装了 (之前一直没去解决单个环境)现在整理下如下, 方式一(略,安装包有点大) 1. 官网下载An 阅读全文
posted @ 2023-06-26 16:46 lshan 阅读(579) 评论(0) 推荐(0)
摘要: git 官网:https://github.com/PaddlePaddle/PaddleSpeech/blob/develop/README_cn.md 强烈建议用户在 Linux 环境下,3.7 以上版本的 python 上安装 PaddleSpeech。 PaddleSpeech 依赖于 pa 阅读全文
posted @ 2023-06-20 18:09 lshan 阅读(971) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 87 下一页