WishMeLz

生活其实很有趣

Wish 发布的文章

PM2搭配nvm使用不同版本Node启动项目

nvm安装完成之后配置目录如下:编写配置文件:ecosystem.config.jsmodule.exports = { apps: [ { name: "discord", script: "/app/discord.js", interpreter: "/root/.nvm/versions/node/v18.20.8/bin/node" } ] } pm2 start ecosystem.config.js

Lodop、C-Lodop使用笔记

Lodop(标音:劳道谱,俗称:露肚皮)是专业WEB控件,用它既可裁剪输出页面内容,又可用程序代码直接实现复杂打印。控件功能强大,却简单易用,所有调用如同JavaScript扩展语句件功能强大,却简单易用,所有调用如同JavaScript扩展语句clodop打印机插件,其他语法与官网一样,只是简化注册步骤。目前兼容最低版本:6.2.2.6官网:http://www.c-lodop.com/LodopDemo.htmlnpm:https://www.npmjs.com/package/clodopGithub:https://github.com/W...

记一次关于 fastclick 导致h5触发键盘事件未将webview撑起的问题

在iOS App的WebView环境中,首次打开H5页面时,快速点击输入框唤起键盘,会出现WebView未被顶起导致输入框被键盘遮挡的现象,而按压式点击却无此问题。经排查,根源在于fastclick插件对iOS系统键盘弹起时页面布局调整的干扰。由于fastclick会拦截原生的触摸事件处理,干扰iOS系统对键盘弹起时页面布局的正常计算FastClick is a simple, easy-to-use library for eliminating the 300ms delay between a physical tap and the fir...

cors-anywhere Nodejs实现静态资源代理,使用ESA加速访问

解决前端访问静态资源CORS跨域的问题 https://github.com/WishMelz/cors-anywhere 【添加只允许代理静态资源条件判断】;原仓库:https://github.com/Rob--W/cors-anywhere 此仓库代码仅仅帮忙解决前端下载CORS资源问题,请勿非法使用!!!举个使用场景:html2canvas、Fabric.js、Three.js 等前端库在把外部图片绘制到 <canvas> 时,若目标服务器未返回 Access-Control-Allow-Origin:*,浏览器会抛出 CO...

给你的网站、博客、文章使用github的markdown样式

Github:https://github.com/sindresorhus/github-markdown-css🤖 AssistantGitHub Markdown CSS demoHeaders# H1 ## H2 ### H3 #### H4 ##### H5 ###### H6 Alternatively, for H1 and H2, an underline-ish style: Alt-H1 ====== Alt-H2 ------H1H1H2H2H3H3H4H4H5H5H6H6Alternatively, for H1 an...

阿里EAS续费1000年方法

整体流程,先去购买一个套餐,续费的时候F12浏览器控制台抓包创建订单接口,修改抓包内容,创建新订单,然后去付款1、先去购买免费EAS套餐https://www.alibabacloud.com/zh/campaign/edge-security-acceleration-20252、去套餐列表续费https://esa.console.aliyun.com/billManage/packageManagement3、打开浏览器控制台F12,然后立即购买4、分析日志,找到对应的接口找到 createOrder.json ,复制请求方式5、修改请求数据...

Nextcloud 登录报错 The polling URL does not start with HTTPS despite the login URL started withHTTPS.

The polling URL does not start with HTTPS despite the login URL started withHTTPS. Login will not be possible because this might be a security issue. Pleasecontact your administrator.尽管登录URL以HTTPS开头,但投票URL并不以HTTPS开头。由于这可能涉及安全问题,可能无法进行登录。请与您的管理员联系。尽管登录URL已通过HTTPS加密,但相关的URL未使用HT...

nodejs 对接邮箱服务 imap

const Imap = require("node-imap"); const { simpleParser } = require("mailparser"); const conn = require("./db"); // IMAP 配置 const imapConfig = { user: "xxx", password: "xxx", host: "eu1.workspace.org", // ...

使用 github action 编译自定义 rustdesk 客户端指南(内置自己的服务器信息、内置固定密码、内置自定义 api 服务器)

前期准备将rustdesk与hbb_common下载下来,建同名仓库,仓库选择私有(因为代码中放了一些密钥信息)https://github.com/rustdesk/rustdeskhttps://github.com/rustdesk/hbb_common申请一个github 的 token1、修改 hbb_common 仓库中的内容在文件 src/config.rs 下修改将字段RENDEZVOUS_SERVERS RS_PUB_KEY 改为自己的地址将字段 HARD_SETTINGS 改为如下pub static ref HARD_SETT...

RealVNC Viewer 远程 MAC使用记录

Win 使用 RealVNC Viewer 远程控制MAC,有局域网模式和公网模式还是Remote Desktop Manager体验好https://devolutions.net/remote-desktop-manager/1、MAC 设置1.1 屏幕设置1.2 屏幕共享1.3 IP1.4 FRPVNC的默认段位为5900, frp 映射此端口即可2、Win 设置2.1 安装 RealVNC Viewer登录创建账号即可,下载 VNC ViewerRealVNC Viewer下载地址2.2 远程访问在地址栏输入局域网ip即可,如果frp映射了...

puppeteer在Linux端 依赖库确实 libdrm.so.2,libnss3.so

/puppeteer/.local-chromium/linux-982053/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory/puppeteer/.local-chromium/linux-982053/chrome-linux/chrome: error while loading shared libraries: libdrm.so....

frp+远程桌面

serverAddr = "125.15.15.4" serverPort = 7000 auth.method = "token" auth.token = "xxxx" [[proxies]] name = "test-tcp" type = "tcp" localIP = "127.0.0.1" localPort = 3389 remotePort = 540781、电脑设置2、防火墙3、一键启动创建bat脚本cmd ...

Linux 工具箱整理

以下是本人从互联网整理获取的相关内容,涵盖多种功能:包含DD系统不同系统环境安装部署脚本、融合怪工具一键安装脚本、NQ相关服务部署脚本、多种测速脚本、一键更换国内服务器软件源脚本、TCP窗口调优脚本、25端口开放测试命令以及wxxuux工具、kejilion相关工具脚本等,可满足服务器在系统安装部署、性能测速、配置优化等多方面的需求。1、DD系统史上最强wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/...

NextTrace 使用

NextTrace - 一款追求轻量化的开源可视化路由跟踪工具。安装方法1:curl -sL nxtrace.org/nt | bash方法2:https://github.com/nxtrace/NTrace-core/releases使用nexttrace mail.itsse.cn路由地图https://assets.nxtrace.org/tracemap/aea26dc3-e95a-53e4-b3f9-7af6a1759563.html

处理后端返回的文件流拿到对应的文件名

/** * 从 HTTP 响应的 Content-Disposition 头部提取文件名 * @param disposition Content-Disposition 头部值 * @param keepExtension 是否保留文件扩展名,默认为 false * @returns 处理后的文件名 */ export function getResBlobFileName(disposition: string | null | undefined, keepExtension = false): string { // 如果没有...