摘要: 安装模块 可以直接使用 pip install libtiff 来进行安装 如果失败,则可以去Python库里面下载 **.whl 包来安装 https://www.lfd.uci.edu/~gohlke/pythonlibs/ 进入该库搜索 pylibtiff,进行下载 安装 : pip inst 阅读全文
posted @ 2021-11-26 13:31 给你骨质唱疏松 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 图片缩放, 旋转, 翻转 1、图像的缩放 图像的缩放使用resize()成员函数,直接在入参中指定缩放后的尺寸即可,示例如下: from PIL import Image #读取图像 im = Image.open("test.jpg") im.show() #原图像缩放为128x128 im_re 阅读全文
posted @ 2021-11-26 13:25 给你骨质唱疏松 阅读(160) 评论(0) 推荐(0) 编辑
摘要: rsync 和 scp 的区别 两者都是linux文件同步/拷贝的方法, 但实现原理不同 网上测试案例 两台服务器来进行文件同步 scp 测试 serverA:/root/song_test 同步到 serverB:/root/song_test time scp -qr /root/song_te 阅读全文
posted @ 2021-11-26 13:19 给你骨质唱疏松 阅读(77) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-11-26 13:13 给你骨质唱疏松 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 一、场景适用 用于一台服务器开启服务运行, 另一台服务器做备份使用 二、Unison的使用 可本地也可远程同步 安装 # 可以下载 tar 包, 也可以 yum 安装 yum install -y unison 配置两台服务器免密登入 ssh-keygen 。。。。(见下面第三段配置服务器SSH双向 阅读全文
posted @ 2021-11-26 13:06 给你骨质唱疏松 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 设置yum安装包缓存位置 场景适用 在公司内部网络, 离线(无法访问外网的情况下), 我们可以先将所需要的rpm包下载好, 传进服务器进行离线安装 yum 可以配置将安装的软件包(rpm包)进行缓存 配置 更改 yum.conf vim /etc/yum.conf # cachedir 为安装包缓存 阅读全文
posted @ 2021-11-26 13:00 给你骨质唱疏松 阅读(510) 评论(0) 推荐(0) 编辑
摘要: from threading import Thread import time import inspect import ctypes def _async_raise(tid, exctype): tid = ctypes.c_long(tid) if not inspect.isclass( 阅读全文
posted @ 2021-11-26 12:54 给你骨质唱疏松 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 安装两个SSH插件 Remote - SSH Remote - SSH: Editing Configuration Files 安装之后 添加远程服务器地址 ​ 输入IP 选择保存的配置文件,回车 或者直接修改该配置文件 点击+,输入密码进行连接 添加映射文件 阅读全文
posted @ 2021-11-26 12:47 给你骨质唱疏松 阅读(46) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-11-26 12:41 给你骨质唱疏松 阅读(0) 评论(0) 推荐(0) 编辑
摘要: CV2 模块安装 pip3 install opencv-python skimage.measure.compare_ssim has been moved to skimage.metrics.structural_similarity. It will be removed from skim 阅读全文
posted @ 2021-11-26 12:35 给你骨质唱疏松 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 安装wordpress docker pull wordpress 运行wordpress镜像 名字自己取 :test-wordpress docker run --name shawn-wordpress -d -p 40000:80 wordpress 需要与MySQL搭配(我尝试过postgr 阅读全文
posted @ 2021-11-26 12:28 给你骨质唱疏松 阅读(366) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-11-26 12:22 给你骨质唱疏松 阅读(0) 评论(0) 推荐(0) 编辑
摘要: nas 直接套件下载 跨版本升级问题, 11不能直接升级到13, 需要下载中间版本12 Gitlab 数据备份 进入Gitlab 容器内 # 1 数据备份 gitlab-rake gitlab:backup:create # 2 查看备份文件 ls /var/opt/gitlab/backups/ 阅读全文
posted @ 2021-11-26 12:16 给你骨质唱疏松 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 页面缩放 0.5 缩放比例 driver.execute_script("document.body.style.zoom='0.5'") #缩小 driver.execute_script("document.body.style.zoom='1.7'") #放大 忽略监控提示 # 忽略监控提示 阅读全文
posted @ 2021-11-26 12:10 给你骨质唱疏松 阅读(64) 评论(0) 推荐(0) 编辑
摘要: os.chmod 和 os.lchmod (只支持 unix 下使用) 语法 os.lchmod(path, mode) 参数 path -- 设置标记的文件路径 mode -- 可以是以下一个或多个组成,多个使用 "|" 隔开: stat.S_IXOTH: 其他用户有执行权0o001 stat.S 阅读全文
posted @ 2021-11-26 12:03 给你骨质唱疏松 阅读(411) 评论(0) 推荐(1) 编辑
摘要: 首先要安装好一些依赖 libxcb-xinerama0 freetype freetype-devel 解决 : 修改配置文件~/.bashrc vim ~/.bashrc export QT_DEBUG_PLUGINS=1 # 添加这一句 source ~/.bashrc # 刷新配置文件 阅读全文
posted @ 2021-11-26 11:57 给你骨质唱疏松 阅读(30) 评论(0) 推荐(0) 编辑