图片批量命名+webp转换

代码 带前缀 from PIL import Image import os def rename_files(target_directory, file_prefix): # 遍历文件夹中的文件 files = os.listdir(target_directory)


图片批量转webp

背景 在网上找了webp图片转换工具,但转换太慢、上传有限制、下载不方便,于是又想到了python。 代码 from PIL import Image import os def convert_images_to_webp(source_dir, output_dir): # 创建输出


和平精英异地/异设备人脸

背景 换新设备后和平精英跳出人脸验证。 解决 下载爱加速。 两边连接相同地区的服务器。 将人脸的连接发送给另一个设备的QQ,要人脸的设备在点击开始验证之前进行断网,不然一下就跳出人脸,无法复制链接。 点击右上角三个点处进行连接复制。 另一个设备点击链接完成验证后,要人脸的设备点击完成验证即可。


阿里云maven-MySQL依赖避坑

依赖 <!-- mysql--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <scope>runtime</scope> </dependency> 这个依赖在拉


阿里云maven

背景 今天创建了一个spring boot的demo项目,发现maven一直拉取失败,用了两年一直没有问题,报了如下错误。 Non-resolvable parent POM for com.elysia:demo:0.0.1-SNAPSHOT: The following artifacts co


NVM-node版本管理器

一、使用缘由 在帮同学查看项目时发现前端依赖一直拉取失败,报了如下错误: npm ERR! request to https://registry.npm.taobao.org/yauzl/-/yauzl-2.4.1.tgz failed, reason: certificate has expir


Waline部署-MySQL版

背景 闲着没事在虚拟机上的halo应用商店看到了waline,于是就开始了折腾。 历程 官方文档里推荐的是使用LeanCloud当数据库,但是LeanCloud需要绑定域名,对于只在本地测试的用户来说不是很友好。 网上查阅的相关部署文档基本都是以LeanCloud为数据库,在查阅官方文档后发现了多数


仪表盘

代码 <template> <div class="dashboard-container"> <github-corner class="github-corner" /> <el-row :gutter="40" class="panel-group"> <el-


留言板

代码 <template> <div class="ciallo" @click="addClickEffect"> <!-- 弹幕输入框 --> <div class="message-container" > <h1 class="message-title">轻