forked from Ikalus1988/MisakaNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlessons.json
More file actions
318 lines (318 loc) · 9.01 KB
/
Copy pathlessons.json
File metadata and controls
318 lines (318 loc) · 9.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
[
{
"id": "api-rate-limit-handling",
"title": "API 请求限流 (Rate Limit) 处理方案",
"domain": "devops",
"tags": [
"api",
"rate-limit",
"retry",
"429"
],
"summary": "调用第三方 API 时返回 HTTP 429(Too Many Requests)或 403(被限流)。自动化脚本因未处理限流而中断。",
"url": "lessons/api-rate-limit-handling.md",
"updated": ""
},
{
"id": "cron-job-not-running",
"title": "Cron 作业不执行 / 不生效排障",
"domain": "devops",
"tags": [
"cron",
"scheduler",
"not-running",
"debug"
],
"summary": "`crontab -e` 设置好后,作业从未执行。输出没有、日志没有、进程没有。",
"url": "lessons/cron-job-not-running.md",
"updated": ""
},
{
"id": "curl-request-troubleshoot",
"title": "curl / wget 请求失败通用排查",
"domain": "devops",
"tags": [
"network",
"curl",
"wget",
"debug",
"troubleshoot"
],
"summary": "`curl https://example.com` 返回空、报错或超时。不知道是 DNS、代理、证书还是目标服务的问题。",
"url": "lessons/curl-request-troubleshoot.md",
"updated": ""
},
{
"id": "disk-space-cleanup",
"title": "磁盘空间不足 / 缓存清理方案",
"domain": "devops",
"tags": [
"disk-space",
"cleanup",
"docker",
"pip-cache"
],
"summary": "写入文件或构建时报 `No space left on device` / `ENOSPC`,进程崩溃。",
"url": "lessons/disk-space-cleanup.md",
"updated": ""
},
{
"id": "git-credentials-automation",
"title": "Git 凭证配置 — 自动化 push 免密码",
"domain": "devops",
"tags": [
"git",
"credentials",
"auth",
"github"
],
"summary": "脚本自动执行 `git push` 时弹出用户名密码输入框,导致自动化流程卡住。",
"url": "lessons/git-credentials-automation.md",
"updated": ""
},
{
"id": "git-merge-conflict-resolution",
"title": "Git 合并冲突处理 — 手动解决最佳实践",
"domain": "development",
"tags": [
"git",
"merge",
"conflict",
"rebase"
],
"summary": "`git pull` 或 `git merge` 时报 `CONFLICT`,文件里出现 `<<<<<<<` 标记。不知如何选择。",
"url": "lessons/git-merge-conflict-resolution.md",
"updated": ""
},
{
"id": "git-tls-handshake-failure",
"title": "GitHub TLS 握手失败 — gnutls_handshake() 错误",
"domain": "devops",
"tags": [
"git",
"github",
"TLS",
"SSL",
"network"
],
"summary": "`git pull` 或 `git push` 时报:",
"url": "lessons/git-tls-handshake-failure.md",
"updated": ""
},
{
"id": "json-parse-failure-handling",
"title": "JSON 解析失败处理 — 截断 / 格式错误",
"domain": "devops",
"tags": [
"json",
"parse",
"truncated",
"llm",
"output"
],
"summary": "从 LLM 输出或 API 返回中解析 JSON 时报 `json.decoder.JSONDecodeError`。常见于模型输出被截断、前后有多余字符。",
"url": "lessons/json-parse-failure-handling.md",
"updated": ""
},
{
"id": "openai-compatible-api-call",
"title": "OpenAI 兼容 API 的通用调用格式",
"domain": "development",
"tags": [
"api",
"openai",
"llm",
"inference",
"chat"
],
"summary": "部署了 LLM 服务(vLLM/Ollama/本地推理)后,不知道怎么用 API 调用。各框架接口不一。",
"url": "lessons/openai-compatible-api-call.md",
"updated": ""
},
{
"id": "phase-0-output-gate",
"title": "Phase 0 Output Gate — Agent 的硬性知识检索规则",
"domain": "methodology",
"tags": [
"output-gate",
"knowledge-reuse",
"methodology",
"core"
],
"summary": "Agent 在 context 中看到了知识但不一定会用。即使指令写了\"不可跳过\",Agent 的惯性行为是直接执行任务、跳过检索。",
"url": "lessons/phase-0-output-gate.md",
"updated": ""
},
{
"id": "pip-install-timeout-ssl",
"title": "pip install 网络超时 / SSL 错误修复",
"domain": "devops",
"tags": [
"pip",
"network",
"SSL",
"timeout",
"proxy"
],
"summary": "`pip install` 失败,报 `timeout`、`SSL: CERTIFICATE_VERIFY_FAILED`、或 `Connection broken` 错误。",
"url": "lessons/pip-install-timeout-ssl.md",
"updated": ""
},
{
"id": "python-gbk-encoding-error",
"title": "Python GBK 编码错误 — Windows/WSL 跨平台",
"domain": "devops",
"tags": [
"python",
"encoding",
"gbk",
"windows",
"wsl"
],
"summary": "在 WSL 中运行 Python 脚本,读取或写入文件时报:",
"url": "lessons/python-gbk-encoding-error.md",
"updated": ""
},
{
"id": "python-pycache-stale",
"title": "Python 代码修改不生效 — stale .pyc 缓存",
"domain": "devops",
"tags": [
"python",
"pyc",
"cache",
"debug"
],
"summary": "改了 Python 文件后运行,行为还是旧的。函数返回值、错误信息、path 等都没有改变。",
"url": "lessons/python-pycache-stale.md",
"updated": ""
},
{
"id": "python-sandbox-path-isolation",
"title": "Python 沙箱/受限环境 — PATH 和 sys.path 隔离",
"domain": "development",
"tags": [
"python",
"sandbox",
"path",
"import",
"venv"
],
"summary": "在沙箱或受限环境中执行 Python 代码时,`import` 报 `ModuleNotFoundError`,或 import 的是宿主环境的包而非沙箱环境的。",
"url": "lessons/python-sandbox-path-isolation.md",
"updated": ""
},
{
"id": "python-venv-troubleshoot",
"title": "Python venv 激活失败或路径不匹配",
"domain": "devops",
"tags": [
"python",
"venv",
"virtualenv",
"path"
],
"summary": "`source venv/bin/activate` 后 `which python` 还是系统 Python,或 `deactivate` 报错。",
"url": "lessons/python-venv-troubleshoot.md",
"updated": ""
},
{
"id": "regex-greedy-matching",
"title": "正则表达式 debugging — 贪婪匹配造成的意外结果",
"domain": "development",
"tags": [
"regex",
"debug",
"greedy",
"pattern"
],
"summary": "正则匹配返回了预期之外的大量文本。`<div>.*</div>` 匹配到了文档末尾而不是最近的闭合标签。",
"url": "lessons/regex-greedy-matching.md",
"updated": ""
},
{
"id": "shell-script-debugging",
"title": "Shell 脚本调试 — set -x 与常见陷阱",
"domain": "development",
"tags": [
"shell",
"bash",
"debug",
"script"
],
"summary": "Shell 脚本报错但不显示问题行,或变量展开后不是预期值。",
"url": "lessons/shell-script-debugging.md",
"updated": ""
},
{
"id": "tmux-session-management",
"title": "tmux 终端复用 — 断开不丢失会话",
"domain": "development",
"tags": [
"tmux",
"terminal",
"session",
"background"
],
"summary": "SSH 断开或终端关闭后,正在运行的任务(训练、迁移、部署)中断。重新连接后无法恢复。",
"url": "lessons/tmux-session-management.md",
"updated": ""
},
{
"id": "wsl-permission-ntfs-fix",
"title": "Permission Denied / WSL NTFS 跨文件系统权限修复",
"domain": "devops",
"tags": [
"permission",
"wsl",
"ntfs",
"eacces",
"filesystem"
],
"summary": "操作 `/mnt/c/` 下的文件时报 `Permission denied` 或 `EACCES`;或 `git` 在 `/mnt/c/` 下报错。",
"url": "lessons/wsl-permission-ntfs-fix.md",
"updated": ""
},
{
"id": "wsl-proxy-setup",
"title": "WSL 代理配置 — 通过 Windows 梯子访问外网",
"domain": "devops",
"tags": [
"wsl",
"proxy",
"network",
"windows"
],
"summary": "WSL 内 `curl google.com` 失败,但 Windows 能正常访问外网。WSL 默认不走 Windows 的代理。",
"url": "lessons/wsl-proxy-setup.md",
"updated": ""
},
{
"id": "wsl-terminal-underscore-missing",
"title": "WSL Windows 终端复制粘贴吞下划线问题",
"domain": "devops",
"tags": [
"wsl",
"terminal",
"windows",
"encoding"
],
"summary": "从 Windows 复制文本粘贴到 WSL 终端时,下划线 `_` 字符消失。配置文件、命令中的下划线名全部错误。",
"url": "lessons/wsl-terminal-underscore-missing.md",
"updated": ""
},
{
"id": "wsl2-memory-leak-fix",
"title": "WSL2 内存泄漏 / 内存占用过高",
"domain": "devops",
"tags": [
"wsl",
"memory",
"leak",
"performance"
],
"summary": "WSL2 运行几天后吃掉 8GB+ 内存,Windows 变卡。`free -h` 显示已用内存极高。",
"url": "lessons/wsl2-memory-leak-fix.md",
"updated": ""
}
]