机械革命自带键盘总是自动乱按,拆机拔掉排线,完美解决烦恼

我的机械革命钛钽 PLUS i7-11800H + RTX 3060 64GB 内存的笔记本电脑一直外接键鼠使用,革命不成功,这机器小毛病真是让人头疼。 外接键盘使用时总是因为自带键盘的一些自动乱按的问题导致奇奇怪怪很恼人的现象产生 VS Code 经常出现 extensions 那个页面,必须按好几次自带键盘上的任意键才能恢复 IDEA 总是遇到 copy class 的那个对话框 Chrome 总是遇到搜索引擎搜索框里输入了文本但是自动刷新了页面,输入框又回到初始状态 网上有人说是电池鼓包导致的键盘失灵、故障,我这电池没有鼓包。 上 B 站以 机械革命 键盘 作为关键字搜索: h... 阅读全文 »

做了一个 squoosh docker 镜像,写博客贴图直接在本地压缩文件,安全且高效

镜像是 dko0/squoosh:1.12.0 或者 dko0/squoosh:latest 。 docker hub: https://hub.docker.com/r/dko0/squoosh GitHub: https://github.com/hellodk34/squoosh 安全,图片只在本地浏览器,不会上传到任何服务器 高效,squoosh 压缩效率惊人,图片品质却没有损失多少,配合各种压缩选项和品质设置,自由度很高。这波必须赞美 https://github.com/GoogleChromeLabs/squoosh 之前看到 V2EX 有个帖子 压缩图片文件大小有什么... 阅读全文 »

nginx 常规端口和非常规端口的 http redirect to https

常规端口 standard port 常规端口很简单,使用两个 server 块,一个监听 80 做跳转,一个监听 443 做实际 serving server { listen 80 default_server; server_name xxx.example.com; return 301 https://$server_name$request_uri; } server { listen 443 ssl http2; server_name xxx.example.com; ssl_certificate /path/to/fullchain.... 阅读全文 »

记一次 OpenWrt luci 显示正在“收集数据”,使用公网 IP nginx 反向代理遇到的 Uncaught TypeError: Cannot read properties of null (reading 'wan') 问题

搜遍了全网,只有这个链接 ( https://forum.openwrt.org/t/solved-luci-overview-page-has-blank-fields/16967 ) 类似。但我使用 frp 映射后的域名访问主页又能正常展示这些字段。看了下接口返回均是 200,response 也都正常。 我的是下面这样的 通过 F12 Console 可以看到 Uncaught TypeError: Cannot read properties of null (reading 'wan') 这样的报错,实际上 index 文件 /usr/lib/lua/luci/view/a... 阅读全文 »

OpenWrt 安装并配置腾讯云动态 dns dnspod tencent ddns

插件开源地址 https://github.com/Tencent-Cloud-Plugins/tencentcloud-openwrt-plugin-ddns 进入 openwrt 后台,进入 「系统」 -> 「软件包」 然后在 「下载并安装软件包」 的输入框里粘贴此 uri http://openwrt-tencentddns-1301800460.cos.ap-guangzhou.myqcloud.com/luci-app-tencentddns_0.1.0-1_all.ipk 然后点击确认,一般不出错的话,包含 luci 的 tencent ddns 就安装好了,刷新页面后... 阅读全文 »