Skip to content

Commit 330e326

Browse files
committed
update
1 parent 2e88277 commit 330e326

File tree

22 files changed

+487
-35
lines changed

22 files changed

+487
-35
lines changed

.gitignore

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,24 @@ node_modules
1818
.history
1919
/etc
2020
/var
21-
.local
22-
*.local.md
2321
/.trash
2422
/.obsidian
25-
#/wener
23+
/wener
24+
25+
/tmp
26+
/out
27+
2628
/local
29+
.local
30+
*.local.md
31+
local.mk
32+
*.local.json
33+
*.local.txt
34+
35+
/.cursor
36+
.cursorrules
37+
*.auth.json
38+
*.key
39+
*.cert
40+
*.pem
41+
.mcp.json

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"editor.defaultFormatter": "DotJoshJohnson.xml"
1515
},
1616
"[yaml]": {
17-
"editor.defaultFormatter": "kennylong.kubernetes-yaml-formatter"
17+
"editor.defaultFormatter": "esbenp.prettier-vscode"
1818
},
1919
"[helm]": {
2020
"editor.defaultFormatter": "kennylong.kubernetes-yaml-formatter"

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
#SHELL:=env bash -O extglob -O globstar
22
SHELL:=env bash -O extglob
33

4+
-include local.mk
5+
46
status:
57
git add -u && git diff --color=always --staged --stat | tee
68

7-
pull:
9+
list-untracked:
10+
git ls-files --others --exclude-standard
11+
12+
update:
813
git pull --rebase --autostash origin $(shell git branch --show-current)
914

1015
prepare-tikz:

notes/dev/ide/cursor.md

Lines changed: 85 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
title: Cursor
3+
tags:
4+
- IDE
5+
- CLI
6+
- Agent
37
---
48

59
# Cursor
@@ -11,17 +15,54 @@ title: Cursor
1115
- https://docs.cursor.com/en/models
1216
- MCP https://cursor.com/docs/context/mcp/directory
1317

14-
# Conf
18+
# 配置 {#conf}
1519

16-
- ~/.cursor
17-
- $CURSOR_CONFIG_DIR
18-
- $XDG_CONFIG_HOME/cursor
19-
- -> Windows `%USERPROFILE%\.cursor`
20-
- ~/.cursor/mcp.json
21-
- `.cursor/mcp.json`
22-
- `~/.cursor/cli-config.json`
23-
- `.cursor/cli.json`
24-
- 只有 permissions 生效
20+
## 配置文件位置
21+
22+
| 类型 | 平台 | 路径 |
23+
| ------- | ----------- | --------------------------------------- |
24+
| Global | macOS/Linux | `~/.cursor/cli-config.json` |
25+
| Global | Windows | `%USERPROFILE%\.cursor\cli-config.json` |
26+
| Project | All | `.cursor/cli.json` |
27+
28+
**环境变量覆盖:**
29+
30+
- `CURSOR_CONFIG_DIR` - 自定义配置目录
31+
- `XDG_CONFIG_HOME` (Linux/BSD) - 使用 `$XDG_CONFIG_HOME/cursor/cli-config.json`
32+
33+
**其他配置文件:**
34+
35+
- `~/.cursor/mcp.json` - MCP 全局配置
36+
- `.cursor/mcp.json` - MCP 项目配置
37+
38+
**注意:**
39+
40+
- Project 级别的 `.cursor/cli.json` 只能配置 permissions
41+
- 其他 CLI 设置必须在 Global 配置中设置
42+
43+
## 配置字段说明
44+
45+
### 必填字段
46+
47+
| 字段 | 类型 | 描述 |
48+
| ------------------- | -------- | -------------------------------- |
49+
| `version` | number | 配置 schema 版本(当前:`1`|
50+
| `editor.vimMode` | boolean | 启用 Vim 键绑定(默认:`false`|
51+
| `permissions.allow` | string[] | 允许的操作列表 |
52+
| `permissions.deny` | string[] | 禁止的操作列表 |
53+
54+
### 可选字段
55+
56+
| 字段 | 类型 | 描述 |
57+
| ------------------------ | ------- | ---------------------- |
58+
| `model` | object | 选择的模型配置 |
59+
| `hasChangedDefaultModel` | boolean | CLI 管理的模型覆盖标志 |
60+
61+
## 配置示例
62+
63+
### 基础配置
64+
65+
**~/.cursor/cli-config.json**
2566

2667
```json
2768
{
@@ -30,24 +71,49 @@ title: Cursor
3071
"vimMode": false
3172
},
3273
"permissions": {
33-
"allow": [""],
34-
"deny": [""]
35-
},
36-
"model": {},
37-
"hasChangedDefaultModel": false
74+
"allow": ["Shell(ls)"],
75+
"deny": []
76+
}
3877
}
3978
```
4079

41-
```json title="cli.json"
80+
### 启用 Vim 模式
81+
82+
```json
4283
{
84+
"version": 1,
85+
"editor": {
86+
"vimMode": true
87+
},
4388
"permissions": {
44-
"allow": ["Shell(ls)", "Shell(git)", "Read(src/**/*.ts)", "Write(package.json)"],
45-
"deny": ["Shell(rm)", "Read(.env*)", "Write(**/*.key)"]
89+
"allow": ["Shell(ls)"],
90+
"deny": []
4691
}
4792
}
4893
```
4994

50-
> 权限语法与 Claude Code 类似
95+
### 项目级权限配置
96+
97+
**.cursor/cli.json**
98+
99+
```json
100+
{
101+
"permissions": {
102+
"allow": [
103+
"Shell(ls)",
104+
"Shell(git)",
105+
"Shell(npm)",
106+
"Shell(pnpm)",
107+
"Read(src/**/*.ts)",
108+
"Read(src/**/*.tsx)",
109+
"Write(src/**/*.ts)",
110+
"Write(src/**/*.tsx)",
111+
"Write(package.json)"
112+
],
113+
"deny": ["Shell(rm)", "Shell(rm -rf)", "Read(.env*)", "Read(**/*.key)", "Read(**/*.pem)", "Write(**/*.key)"]
114+
}
115+
}
116+
```
51117

52118
# FAQ
53119

notes/dev/vibe-coding.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ title: Vibe Coding
44

55
# Vibe Coding
66

7+
:::tip
8+
9+
- 如果你 review 了所有的代码,那就不算是 vibe coding。
10+
- AI 无法完全完成 当事人 也无法理解的任务。
11+
12+
:::
13+
714
- 明确项目需求和范围
815
- 建立全面的设计指南和编码标准
916
- 记录所有约束和限制
1017
- 创建并维护包含信息的 markdown 文件,便于客户端访问
1118
- 只有在完成上述步骤后再启动编码过程
1219

13-
1420
## 提示词
1521

1622
:::tip

notes/economics/ppio.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ title: PPIO
1111
- 姚欣, 王闻宇
1212
- 缀初网络技术 (上海) 有限公司
1313
- https://www.tianyancha.com/company/3193559269
14-
- https://novita.ai/
1514
- PPLabs Technology Limited
1615
- 开曼群岛注册的控股公司
1716
- 香港交易所(HKEX) IPO
@@ -22,7 +21,6 @@ title: PPIO
2221
| 竞争者 | 主要市场 | 核心差异化优势 | 融资状况 | 目标受众 |
2322
| ------------- | --------- | ----------------------------------------- | ----------------------------- | ---------------- |
2423
| PPIO | 中国 | 成本效益,中立平台,安全隔离 | 已融资 (>2亿美元),已申请 IPO | 企业,开发者 |
25-
| Novita.ai | 国际 | 极具竞争力的价格,全面的 API 库,安全沙箱 | 由母公司 PPIO 提供资金 | 开发者,初创公司 |
2624
| BaishanCloud | 中国 | 边缘云服务 | 已获风险投资 | 企业 |
2725
| Alibaba Cloud | 中国/国际 | 全栈云服务,自研模型(Qwen) | 上市公司 | 企业,开发者 |
2826
| Hugging Face | 国际 | 模型中心,社区生态,易于部署 | 已融资 (D轮) | 开发者,研究人员 |

notes/economics/yikaiye.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: 易开业
3+
---
4+
5+
# 易开业
6+
7+
- https://www.yikaiye.com/

notes/evolve/quotes.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ title: Quotes
1414
- 面试就是,您先听我讲讲我的故事,如果您愿意,在让我听听您将的故事。
1515
- 残缺的身体并不可怕,可怕的是残缺的心。
1616
- thoughts takes time
17+
- Notes - Materialize you conclusion of thought.
1718

1819
:::
1920

notes/platform/apple/ios/go-ios.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
tags:
3+
- Go
4+
- Automation
5+
---
6+
7+
# go-ios
8+
9+
- [danielpaulus/go-ios](https://github.com/danielpaulus/go-ios)
10+
- MIT, Go
11+
- 参考
12+
- REST API https://github.com/danielpaulus/go-ios/tree/main/restapi
13+
14+
```bash
15+
npm add -g go-ios
16+
17+
18+
# iOS 17+
19+
sudo ios tunnel start
20+
```

0 commit comments

Comments
 (0)