随笔分类 -  Ops

摘要:本文由 AI 辅助整理,并由人工复核后发布。 背景 有些本地代理栈本身并不直接配置本地 TUN 代理作为上游代理,但由于 Windows 系统启用了 TUN 接管,进程的外连 TCP 连接仍可能被系统路由导入该 TUN 接口。 因此确认时要分三层看: 脚本配置层:脚本有没有显式设置本地代理程序为 H 阅读全文
posted @ 2026-06-23 00:19 LexLuc 阅读(27) 评论(0) 推荐(0)
摘要:一、起因 今天我在 dev 分支上想做一件最稀松平常的事: git pull 终端却抛出错误: fatal: refusing to merge unrelated histories 「拒绝合并无关历史」——意思是 Git 觉得本地 dev 和远端 origin/dev 像两条陌生的河流,不愿意把 阅读全文
posted @ 2026-04-30 08:02 LexLuc 阅读(57) 评论(0) 推荐(0)
摘要:最近把一台已经跑过旧版 OpenClaw 的升级到 4.20,过程中最大的坑还不是升级 OpenClaw 本体,反而是历史遗留的飞书插件状态。 原本想只要拉最新仓库、执行 pnpm install、重新启动就够了;但如果本机 ~/.openclaw 里已经残留了旧版飞书插件 feishu-openc 阅读全文
posted @ 2026-04-22 02:01 LexLuc 阅读(1640) 评论(0) 推荐(0)
摘要:适用系统:Windows 10 / 11,GPT 分区 + UEFI 启动模式 故障现象:开机后直接进入 Windows 恢复环境(WinRE),无法正常启动系统 一、问题现象 开机后没有进入正常的 Windows 登录界面,而是直接跳转到蓝色的"Choose an option"恢复界面,提供以下 阅读全文
posted @ 2026-03-08 00:55 LexLuc 阅读(857) 评论(0) 推荐(0)
摘要:场景 删除远程 main 分支 关键步骤 1. 更改远程默认分支 必须先在 GitHub 网页端操作: Settings → Default branch → 选择新分支 → Update 2. 同步本地远程跟踪 git remote set-head origin -a 3. 验证更改 git r 阅读全文
posted @ 2026-01-16 15:14 LexLuc 阅读(125) 评论(0) 推荐(0)
摘要:在 Windows 环境下使用 uv add 安装 Python 依赖时,很多人都会遇到类似下面的警告: warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performan 阅读全文
posted @ 2026-01-01 11:39 LexLuc 阅读(1045) 评论(0) 推荐(0)
摘要:问题描述 在使用 Git 时,如果文件名包含中文或其他非 ASCII 字符,执行 git status 等命令时会看到类似这样的输出: $ git status On branch main Untracked files: (use "git add <file>..." to include i 阅读全文
posted @ 2025-12-11 00:03 LexLuc 阅读(196) 评论(0) 推荐(0)
摘要:TL;DR(太长不看版) 核心思想: 用密钥对(公钥+私钥)替代密码登录,公钥放服务器,私钥留本地,登录时加密验证,安全又方便。 快速操作步骤: # 1. 本地生成密钥对 ssh-keygen -t ed25519 -C "your_email@example.com" -f ~/.ssh/my_s 阅读全文
posted @ 2025-11-24 20:14 LexLuc 阅读(955) 评论(0) 推荐(0)
摘要:目录 简介 核心特性 安装 uv Linux / macOS / WSL Windows Python 版本管理 安装和管理 Python 版本 项目环境管理 为新项目创建环境 为已有代码创建环境 依赖管理 添加依赖 更新依赖(重要) 从已有依赖文件迁移 从 requirements.txt 导入 阅读全文
posted @ 2025-10-22 02:32 LexLuc 阅读(659) 评论(0) 推荐(0)
摘要:开头 最近给一个React项目配Docker构建,碰到了一个看起来简单实际很麻烦的错误: Failed to compile. The target environment doesn't support dynamic import() syntax so it's not possible to 阅读全文
posted @ 2025-09-29 16:50 LexLuc 阅读(67) 评论(0) 推荐(0)
摘要:1. 配置Anaconda PowerShell Prompt 找到Miniconda路径 [安装路径]\miniconda3\Scripts\activate.bat # 例如: D:\miniconda3\Scripts\activate.bat # 或: C:\Users\[用户名]\mini 阅读全文
posted @ 2025-09-22 14:23 LexLuc 阅读(6809) 评论(0) 推荐(0)
摘要:预热 pre-warm AWS EBS Volume 阅读全文
posted @ 2024-11-05 22:28 LexLuc 阅读(225) 评论(0) 推荐(0)
摘要:AWS EC2 S3 文件对象 上传 下载 复制 共享 阅读全文
posted @ 2024-10-31 01:21 LexLuc 阅读(129) 评论(0) 推荐(0)
摘要:vscode launch.json template 模板 debug 阅读全文
posted @ 2024-09-04 21:49 LexLuc 阅读(87) 评论(0) 推荐(0)
摘要:什么是可突发实例(Burstable Instances)? 理解CPU Credit 什么是CPU Credit 如何积累CPU Credit 消耗CPU Credit 突发带宽(Burstable Bandwidth)概述 支付CPU Credit费用 标准使用 无限模式 成本管理与优化 总结 阅读全文
posted @ 2024-08-25 01:35 LexLuc 阅读(270) 评论(0) 推荐(0)
摘要:1. 基础配置 1.1 用户信息配置 # 配置用户名和邮箱 git config --global user.name 'user_name' git config --global user.email 'user_email' # 查看全局配置 git config --global --lis 阅读全文
posted @ 2023-10-07 16:53 LexLuc 阅读(95) 评论(0) 推荐(0)
摘要:1. 下载二进制压缩包 https://www.enterprisedb.com/download-postgresql-binaries 2. 解压后在压缩包的bin目录下执行初始化DB命令 initdb.exe -D .\data -U pguser -W -E UTF8 -A scram-sh 阅读全文
posted @ 2023-09-11 16:27 LexLuc 阅读(452) 评论(0) 推荐(0)
摘要:# 关键信息记录 ## 1. 在WSL实测`nc`可实现代理流量转发 ``` ssh -i key.pem @ -o "ProxyCommand=nc -X connect -x : %h %p" ``` ## 2. windows无法使用`nc`,通过修改 VS-Code Remote-SSH 插 阅读全文
posted @ 2023-09-02 14:53 LexLuc 阅读(693) 评论(0) 推荐(0)
摘要:```bash sudo apt-get install openssl cd /etc/nginx sudo mkdir ssl sudo openssl req -batch -x509 -nodes -days 365 \ -newkey rsa:2048 \ -keyout /etc/ngi 阅读全文
posted @ 2023-07-18 02:00 LexLuc 阅读(41) 评论(0) 推荐(0)
摘要:问题描述 Java API报错 java.io.IOException: Unable to find region for 2520192391014818087 in $TABLENAME ; ERROR Utils: Aborting task org.apache.hadoop.hbase. 阅读全文
posted @ 2023-03-04 15:07 LexLuc 阅读(3079) 评论(0) 推荐(0)