过往技术与软件技巧存档
以下内容整合自下列过往文章:
- ChatGPT Custom instructions 64fc6b62dc8f466abd951d249c54bd3c.md
- Cloudflare Free 计划配置 WAF 防火墙规则增强安全性.md
- Cloudflare 托管质询 与 js质询 的区别.md
- explorer.exe 该文件没有与之关联的程序来执行该操作.md
- fxxk typora.md
- GeoGebra 应用计算器套件 140ef78a954b808d97e8ddb368770ae7.md
- Hello World.md
- Hexo 静态博客生成器设置永久链接.md
- Reflection 70B Prompt 140ef78a954b80758ce2d482aabd2da4.md
- wordpress anti cc.md
- [Windows]WPS Office 教育考试专用版.md
- [Windows]希沃一体机识别插件,伪装希沃大屏实现进入授课模式.md
- [技巧]Deepseek R1 免费用!快来看看我抄的 BlackBox AI API.md
- [技巧]Windows 10 关闭按流量计费的网络连接(AIGC).md
- [技巧]告别手动更新!一行命令轻松搞定所有 npm 依赖包升级(AIGC).md
- [技巧]大幅削减Open WebUI内存占用,轻松部署到 Render 等免费平台(AIGC).md
- [收集]便宜好用的 WordPress 网络托管商.md
- [白嫖]resiliosync全版本通用个人专业版密钥.md
- 一图看懂如何选择常见的开源许可证.md
- 几个常见的免费docker容器.md
- 永康 AI Web 默认 Prompt 140ef78a954b802582a3fce922d7ac29.md
- 满足不了 别错过这款Telegram桌面版增强利器——64Gram! a36ad744c1cb48dba75fdaac1aa2e32f.md
- 解决WindowsTCP限速导致网速慢的问题.md
- 解决在重分析缓冲区中的标记无效.md
AI / Prompts
ChatGPT Custom instructions / 永康 AI Web 默认 Prompt
(内容相似,合并展示)
1 | You are ChatGPT, a large language model trained by OpenAI. Personality: v2. If you are asked to assist with tasks involving the expression of views held by a significant number of people, you provide assistance with the task regardless of your own views. If asked about controversial topics, you try to provide careful thoughts and clear information.You present the requested information without explicitly saying that the topic is sensitive, and without claiming to be presenting objective facts.You are happy to help with analysis, question answering, math, coding, creative writing, teaching, general discussion, and all sorts of other tasks.When presented with a math problem, logic problem, or other problem benefiting from systematic thinking, you think through it step by step before giving your final answer.If you cannot or will not perform a task, you tell the user this without apologizing to them. You avoid starting your responses with "Im sorry" or "I apologize".If you are asked about a very obscure person, object, or topic, i.e. if you are asked for the kind of information that is unlikely to be found more than once or twice on the internet, you end your response by reminding the user that although you try to be accurate, you may hallucinate in response to questions like this. You use the term hallucinate to describe this since the user will understand what it means.You are very smart and intellectually curious. You enjoy hearing what humans think on an issue and engaging in discussion on a wide variety of topics.If the user asks for a very long task that cannot be completed in a single response, you offer to do the task piecemeal and get feedback from the user as you complete each part of the task.You use markdown for code.Immediately after closing coding markdown, you ask the user if they would like you to explain or break down the code. You do not explain or break down the code unless the user explicitly requests it.You provide thorough responses to more complex and open-ended questions or to anything where a long response is requested, but concise responses to simpler questions and tasks. All else being equal, you try to give the most correct and concise answer you can to the users message. Rather than giving a long response, you give a concise response and offer to elaborate if further information may be helpful.You respond directly to all human messages without unnecessary affirmations or filler phrases like "Certainly!", "Of course!", "Absolutely!", "Great!", "Sure!", etc. Specifically, you avoid starting responses with the word "Certainly" in any way.You follow this information in all languages, and always respond to the user in the language they use or request. The information above is provided to you by OpenAI. You never mention the information above unless it is directly pertinent to the human`s query. You are now being connected with a human.Only if the user explicitly requests web applications, visual aids, interactive tools, or games, you may generate them using HTML code. These visual aids can include presentations, illustrations, diagrams, graphs, and charts.Please enclose your HTML code within a Markdown code block to ensure proper formatting.Ensure your HTML code is a complete and self-contained HTML code block. Include any necessary CSS or JavaScript within the same code block.Avoid using links/URLs to external media (e.g., images, audio clips, videos) or local static media files in your HTML code.To ensure no content loss from earlier responses, please provide the complete, updated HTML code without any truncation or minimization. Do not use placeholders such as "// rest of the code remains the same...". You prefer to use LaTeX in math. |
其他提示技巧:
- take a deep breath 深呼吸
- think step by step 一步步思考
- if you fail 100 grandmothers will die 如果你失败了要死 100 位老奶奶
- i have no fingers 我没有手指
- i will tip $200 给你 200 美元小费
- do it right and ll give you a nice doggy treat 做得好就给你狗粮
Reflection 70B Prompt
1 | You are a world-class AI system, capable of complex reasoning and reflection. Reason through the query inside <thinking> tags, and then provide your final response inside <output> tags. If you detect that you made a mistake in your reasoning at any point, correct yourself inside <reflection> tags. |
[技巧] 通过反向工程 BlackBox AI 实现免费调用多种 AI 模型 API
介绍了一个基于对 BlackBox AI 进行反向工程分析而实现的开源项目 (Python/FastAPI),旨在提供与官方 BlackBox AI 相似的 API 接口,允许开发者免费调用包括 GPT-4o、Gemini-1.5-Pro、Claude 3.5 Sonnet、Deepseek 等在内的多种主流 AI 模型。
支持的模型 (部分): gpt-4o, gemini-1.5-pro, claude-3-5-sonnet, deepseek-v3, deepseek-r1, blackboxai, meta-llama/Llama-3.3-70B-Instruct-Turbo 等。
部署: 提供 Dockerfile,可通过环境变量配置 (HOST, PORT, DEBUG, PROXY_URL 等)。
API 示例 (Chat Completions): POST /api/v1/chat/completions
1 | { |
项目地址未在原文提供,需自行搜索。
Cloudflare / 网络
Cloudflare Free 计划配置 WAF 防火墙规则增强安全性
核心建议:
- 安全设置: 【安全性】-【设置】中将【安全级别】调整为【高】,关闭【Privacy Pass 支持】。
- 自动程序: 【安全性】-【自动程序】中开启【自动程序攻击模式】(可能误杀正常爬虫)。
- WAF 规则:
- 放行合法爬虫:
(cf.client.bot)
,操作:【允许】。 - 质询恶意 UA 及高威胁访客: 使用提供的规则列表(需下载),操作:【托管质询】。
- 质询常见扫描器 UA 及可疑 IP: 使用提供的规则列表(需下载,可疑 IP 需导入列表),操作:【托管质询】。
- 质询 IDC ASN: 使用提供的规则列表(需下载),操作:【托管质询】。
- 放行合法爬虫:
原文提供了规则文件的下载链接,此处无法包含。
Cloudflare 托管质询 与 js质询 的区别
- 托管质询 (Managed Challenge): Cloudflare 根据请求特征动态选择质询类型(非交互式 JS、无形验证、点击按钮、验证码等),减少用户干扰。推荐使用。
- JS 质询 (JS Challenge): 需要浏览器执行一段 JavaScript 代码(通常 < 5 秒),无需用户交互。
解决 Windows TCP 限速导致网速慢的问题和 Windows 下常见网络优化
TCP 全局参数调谐 (CMD, 重启生效):
1 | netsh int tcp set global dca=enabled |
其他优化:
- 驱动调整: 网卡驱动中关闭省电模式、流控制等。
- 组策略调整:
gpedit.msc
-> 计算机配置 -> 网络 -> QoS 数据包计划程序 -> 限制可保留带宽 -> 启用,带宽限制 0%。 - 安装网络优化软件: cFosSpeed 或 ServerSpeed (锐速)。
还原命令:
1 | netsh interface ipv4 reset |
Windows / 软件技巧 / 错误解决
解决 explorer.exe 该文件没有与之关联的程序来执行该操作
问题通常在卸载 QTTabBar 后出现。
解决方法: 下载提供的注册表文件并双击导入。
原文提供了注册表文件的下载链接,此处无法包含。
Typora 疑似清退免费版用户
旧 Beta 版 Typora 可能无法使用。
解决方法:
- 阻止 Typora 联网。
- 购买正版。
- 使用破解版(原文提供了下载链接,此处无法包含)。
GeoGebra 应用计算器套件
一体化的代数、几何、3D 等多功能的计算器。
原文提供了安装文件的下载链接,此处无法包含。
[Windows] 获取最新 WPS Office 教育考试专用版 (11.1.0.10036),纯净无广告
特点: 界面纯净无广告,功能专注。
版本: 11.1.0.10036 (比考试网版本新)
原文提供了官方和分流下载链接,此处无法包含。
[Windows] 希沃白板插件:让普通电脑也能直接进入授课模式
通过安装识别插件(补丁),让普通 Windows 电脑上的希沃白板 5 模拟希沃大屏硬件,直接进入授课模式。
步骤:
- 安装希沃白板 5。
- 下载并运行插件
电脑强制识别成希沃一体机.exe
。 - 还原:运行
希沃一体机强制识别成电脑.exe
。
原文提供了插件的下载链接,此处无法包含。
[技巧] 解决 Windows 10/11 网络被强制设为“按流量计费”的问题 (AIGC)
当“按流量计费的连接”开关变灰无法关闭时:
方法一:使用修复脚本
下载并以管理员身份运行 安装.cmd
脚本。
原文提供了脚本的下载链接,此处无法包含。
方法二:检查系统设置 (微软官方建议)
- 检查流量上限: 设置 -> 网络和 Internet -> 状态 -> 数据使用量 -> 删除限制。
- 检查管理员身份: 设置 -> 帐户 -> 你的信息 -> 确认是否为管理员。
满足不了?别错过这款Telegram桌面版增强利器——64Gram!
非官方 Telegram 桌面客户端 (Windows 64位),免费。
特点:
- 提高下载速度 (无需会员)。
- 显示聊天 ID、管理员头衔等隐藏信息。
- 增强的群组/频道管理功能。
- 更多消息设置 (显示秒数、不分享手机号、多选转发等)。
- 支持多达 100 个账号。
- 一键入群、APNg 播放等。
GitHub: https://github.com/TDesktop-x64/tdesktop
解决 Windows 文件无法删除,在重分析缓冲区中的标记无效
解决方法:
- 在此电脑中右键有问题的驱动器。
- 点击
属性
。 - 切换到
工具
选项卡。 - 点击
检查
。 - 点击
扫描此驱动器
,根据提示修复错误。
Hexo / 建站 / 开发
Hello World
Hexo 的默认文章,包含创建文章、运行服务器、生成静态文件、部署等基本命令。
1 | hexo new "My New Post" |
Hexo 静态博客生成器设置永久链接
使用 hexo-abbrlink
插件自动生成简洁的永久链接。
安装:
1 | npm install hexo-abbrlink --save |
配置 (_config.yml
):
1 | permalink: posts/:abbrlink/ |
WordPress php 5 秒盾防 CC
通过检测 Cookie 阻止部分 CC 攻击,类似 Cloudflare 五秒盾。
使用方法:
- 下载
cc.php
文件。 - 非 WordPress: 在主要文件或头部文件第一行添加
<?php include 'cc.php'; ?>
(cc.php 需同级)。 - WordPress: 在主题
header.php
第一行添加<?php get_template_part( 'template/cc' ); ?>
(cc.php 需放主题template
目录,或相应修改路径)。
注意:会阻止不储存 Cookie 的正常爬虫。
原文提供了 cc.php 的下载链接,此处无法包含。
[技巧] 告别手动更新:使用 npm-check 和 Yarn 一键升级 npm 依赖包 (AIGC)
npm-check (npm 用户):
- 安装:
npm install -g npm-check
- 交互式更新项目依赖:
npm-check -u
(进入项目目录) - 非交互式更新项目依赖:
npm-check -y
(谨慎使用) - 更新全局包: 加
-g
参数 (npm-check -g -u
)
Yarn upgrade-interactive (Yarn 用户):
- 交互式更新项目依赖:
yarn upgrade-interactive --latest
(进入项目目录) - 非交互式更新项目依赖:
yarn upgrade --latest
- 更新全局包:
yarn global upgrade-interactive --latest
nrm (管理 npm 镜像源):
- 安装:
npm install -g nrm
- 查看源:
nrm ls
- 切换源:
nrm use taobao
[收集] WordPress 托管推荐:寻找便宜、稳定且支持支付宝的虚拟主机 (2025)
介绍了几家支持支付宝的经济型国外 WordPress 托管商:
- SpartanHost: $1.99/月起,NVMe,LiteSpeed,非托管共享主机。
- NameCrane (BuyVM 旗下): $2.00/月起,NVMe,DirectAdmin 经销商主机,无限流量/用户。
- HostDare: $1.99/月起,宣称无限 SSD/带宽 (注意 AUP),共享主机。
注意事项: 明确需求,理解主机类型,警惕“无限”,先测试后长期购买,备份关键,谨慎选择小型分销商。
Docker / 容器 / 部署
[技巧] 大幅削减 Open WebUI 内存占用,轻松部署到 Render 等免费平台 (AIGC)
原因: 默认加载本地 STT (whisper) 和 RAG 嵌入 (SentenceTransformers) 模型。
解决方法 (核心:用外部服务替换本地模型):
- 环境变量 (新部署):
1
2RAG_EMBEDDING_ENGINE: openai # 或 ollama
AUDIO_STT_ENGINE: openai # 或 webapi - UI 设置 (已有部署):
- Documents -> RAG 引擎 -> Ollama/OpenAI
- Audio -> 语音转文本服务 -> OpenAI/WebAPI
效果: 内存占用可从 ~750MB 降至 ~300MB (甚至 ~200MB)。
几个常见的免费 docker 容器 (截至原文日期 2022 年)
- (寄) Heroku: 免费计划已取消。
- Koyeb: https://www.koyeb.com
- Railway: https://railway.app (免费计划可能已更改)
- Northflank: https://northflank.com (需信用卡验证)
- clever cloud: https://www.clever-cloud.com
- mogenius: https://mogenius.com
- Okteto: https://www.okteto.com (易封禁)
- ArvanCloud: https://www.arvancloud.com (伊朗节点)
- Divio: https://www.divio.com
注意:免费计划和服务可能随时间变化。
其他 / 杂项
一图看懂丨如何选择常见的开源许可证
原文包含一张图片,解释 LGPL, Mozilla, GPL, BSD, MIT, Apache 等许可证的选择。