Skip to content

Commit d55dd1b

Browse files
committed
Enhance documentation with new entries and updates
- Added new models to the Claude Code configuration section. - Introduced new tools in the database documentation, including pgduck_server and pg_mooncake. - Expanded testing documentation with the addition of Common Test Report Format (CTRF). - Created a new file for the Pareto Principle, detailing its applications and implications. - Updated AIOps documentation with additional abbreviations and meanings. - Added new quotes to the Quotes section, emphasizing measurement and management principles. - Included SSH key permissions in the SSH FAQ. - Added a new file for Feishu Docs with example code structure. - Updated observability notes with quotes from Peter Drucker and Goodhart's Law. - Enhanced Grafana documentation with a reset password command. - Updated JavaScript resources with new S3 client entries.
1 parent 35a8ba1 commit d55dd1b

File tree

15 files changed

+235
-26
lines changed

15 files changed

+235
-26
lines changed

notes/ai/dev/claude-code.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ claude config list
146146
| ANTHROPIC_BASE_URL | 自定义 API 端点 URL |
147147
| ANTHROPIC_CUSTOM_HEADERS | 添加到请求的自定义头(Name: Value 格式) |
148148
| ANTHROPIC_MODEL | 要使用的自定义模型名称(如 claude-sonnet-4-20250514) |
149+
| ANTHROPIC_DEFAULT_HAIKU_MODEL |
150+
| ANTHROPIC_DEFAULT_OPUS_MODEL |
151+
| ANTHROPIC_DEFAULT_SONNET_MODEL |
152+
| CLAUDE_CODE_SUBAGENT_MODEL |
149153
| ANTHROPIC_SMALL_FAST_MODEL | Haiku 类模型名称,用于后台任务 |
150154
| ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION | 使用 Bedrock 时小型快速模型的 AWS 区域覆盖 |
151155
| ANTHROPIC_BEDROCK_BASE_URL | AWS Bedrock 端点 URL |

notes/db/db-awesome.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ tags:
136136
- by LinkedIn
137137
- Apache [Doris](https://github.com/apache/doris)
138138
- by 百度
139+
- pgduck_server
140+
- [Snowflake-Labs/pg_lake](https://github.com/Snowflake-Labs/pg_lake)
141+
- Apache-2.0, C
142+
- Iceberg, DuckDB
143+
- Postgres for Iceberg and Data lakes
144+
- [Mooncake-Labs/pg_mooncake](https://github.com/Mooncake-Labs/pg_mooncake)
145+
- MIT, Rust
139146
- [Comparison of OLAP servers](https://en.wikipedia.org/wiki/Comparison_of_OLAP_servers)
140147

141148
## OLTP

notes/dev/testing/testing-awesome.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ tags:
2525
- Apache-2.0, C
2626
- [artilleryio/artillery](https://github.com/artilleryio/artillery)
2727
- MPLv2, Node.js
28+
- Reports
29+
- CTRF - Common Test Report Format
30+
- Unified JSON Test Report With Seamless Developer Tool Integration
31+
- https://ctrf.io/
2832
- Examples
2933
- [fastify/benchmarks](https://github.com/fastify/benchmarks)
3034

notes/dev/theory/pareto.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Pareto Principle
3+
---
4+
5+
# Pareto Principle
6+
7+
- 80/20法则
8+
- 关键少数法则(the law of the vital few)
9+
- 大约80%的结果(后果)是由20%的原因所导致的
10+
- “幂律分布”(power law distribution)
11+
- “帕累托分布”(Pareto distribution)
12+
- 参考
13+
- [Pareto Principle](https://en.wikipedia.org/wiki/Pareto_principle)
14+
- 应用实例:
15+
- 商业:"80%的销售额来自20%的客户"。
16+
- 筹款:"80%的捐款总额可能来自20%的捐赠者"。
17+
- 帕累托效率/最优 / Pareto Efficiency / Optimality
18+
- 无法在两者之间进行客观比较。两者都可能是“帕累托最优”的解,它们只是代表了不同用户偏好下的不同权衡。
19+
- 帕累托改进 / Pareto Improvement

notes/devops/aiops/README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,17 @@ title: AIOps
6868
- Open-loop Automation - 开环自动化 - Human in the loop
6969
- Event Correlation - 事件关联
7070

71-
| abbr. | stand for | meaning |
72-
| ----- | -------------------------- | ---------------- |
73-
| MTTD | Mean Time To Detection | 平均检测时间 |
74-
| MTTR | Mean Time To Repair | 平均修复时间 |
75-
| MTBF | Mean Time Between Failures | 平均故障间隔时间 |
76-
| MTTF | Mean Time To Failure | 平均故障时间 |
77-
| MTTR | Mean Time To Recovery | 平均恢复时间 |
78-
| MTTA | Mean Time To Alert | 平均告警时间 |
79-
| RCA | Root Cause Analysis | 根因分析 |
71+
| abbr. | stand for | meaning |
72+
| ----- | ------------------------------- | ---------------- |
73+
| MTTD | Mean Time To Detection | 平均检测时间 |
74+
| MTTR | Mean Time To Repair | 平均修复时间 |
75+
| MTBF | Mean Time Between Failures | 平均故障间隔时间 |
76+
| MTTF | Mean Time To Failure | 平均故障时间 |
77+
| MTTR | Mean Time To Recovery | 平均恢复时间 |
78+
| MTTA | Mean Time To Alert | 平均告警时间 |
79+
| RCA | Root Cause Analysis | 根因分析 |
80+
| MOO | Multiple Objective Optimization | 多目标优化 |
81+
| SOO | Single Objective Optimization | 单目标优化 |
8082

8183
| en | cn |
8284
| ----------------------- | ------------------ |
@@ -155,6 +157,7 @@ title: AIOps
155157
- Moogsoft
156158
- Splunk ITSI
157159
- Grafana OnCall, Alerta, GoAlert
160+
158161
# FAQ
159162

160163
## AIOps vs. 金融量化交易

notes/evolve/quotes.mdx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,23 @@ title: Quotes
2020

2121
- The quieter you become, the more you are able to hear.
2222

23+
> Make it work, make it right, make it fast.
24+
>
25+
> -- by Kent Beck
26+
27+
---
28+
29+
> If you can't measure it, you can't manage it.
30+
> If you can't measure it, you can't improve it.
31+
>
32+
> -- by Peter Drucker
33+
34+
---
35+
36+
> When a measure becomes a target, it ceases to be a good measure.
37+
>
38+
> -- by The Risk of Goodhart's Law
39+
2340
export const Quote = ({ children, cite, href }) => {
2441
return (
2542
<div className={'quote'}>
@@ -171,7 +188,8 @@ export const Quote = ({ children, cite, href }) => {
171188
understanding the ones (probably very similar) of &lt;new tech&gt; and you’re doomed to repeat the same loop over
172189
and over…. I love this industry!
173190
</p>
174-
&mdash; Antonio Murgia (@tmnd1991) <a href='https://twitter.com/tmnd1991/status/1631949685999927296?ref_src=twsrc%5Etfw'>March 4, 2023</a>
191+
&mdash; Antonio Murgia (@tmnd1991){' '}
192+
<a href='https://twitter.com/tmnd1991/status/1631949685999927296?ref_src=twsrc%5Etfw'>March 4, 2023</a>
175193
</blockquote>
176194

177195
{/* <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> */}

notes/os/linux/shell/ssh/ssh-faq.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ tags:
55

66
# SSH FAQ
77

8+
```bash
9+
chmod 400 ~/.ssh/id_*
10+
chmod 644 ~/.ssh/id_*.pub
11+
chmod 700 ~/.ssh/authorized_keys
12+
```
13+
814
## SOCKS Proxy
915

1016
```bash
@@ -368,16 +374,16 @@ ssh-keygen -R HOSTNAME
368374
```bash
369375
SSH_ENV="$HOME/.ssh/agent.env"
370376
function start_agent {
371-
ssh-agent -s > "$SSH_ENV"
372-
. "$SSH_ENV" > /dev/null
377+
ssh-agent -s > "$SSH_ENV"
378+
. "$SSH_ENV" > /dev/null
373379
}
374380
if [ -f "$SSH_ENV" ]; then
375-
. "$SSH_ENV" > /dev/null
376-
if ! kill -0 "$SSH_AGENT_PID" 2>/dev/null; then
377-
start_agent
378-
fi
379-
else
381+
. "$SSH_ENV" > /dev/null
382+
if ! kill -0 "$SSH_AGENT_PID" 2> /dev/null; then
380383
start_agent
384+
fi
385+
else
386+
start_agent
381387
fi
382388

383389
unset SSH_ENV

notes/philosophy/construction.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
tags:
3+
- Topic
4+
---
5+
6+
# 解构 & 构建
7+
8+
| 概念 | 解构 | 建构 |
9+
| -------- | ---------------------- | --------------------------------------- |
10+
| 核心动作 | 拆解、揭示、批判 | 建造、形成、理解过程 |
11+
| 核心领域 | 哲学、文学批评 | 社会学、心理学、教育学 |
12+
| 其他领域 | 建筑学、法学、人类学等 | 国际关系、哲学(知识论) |
13+
| 代表人物 | 雅克·德里达 | 皮亚杰(教育学)、彼得·柏格(社会学)等 |
14+
15+
- Pessimists sound smart, optimists make money. - by Nat Friedman
16+
- 悲观者 Right, 乐观者 Win
17+
- 在科技和风险投资领域非常盛行。
18+
- 悲观 是一种智力上的“正确”或“安全”,它能帮你规避风险,让你在短期内显得很明智。
19+
- 乐观 是一种行动上的“胜利”,它是一种(有时显得非理性的)信念,这种信念驱动人们去创造、去下注,并最终在充满不确定性的世界中捕获真正的价值。
20+
- 像悲观者一样去分析风险,但必须像乐观者一样去下注和行动。
21+
- https://news.ycombinator.com/item?id=31173024
22+
23+
# FAQ
24+
25+
## 知乎 vs 小红书
26+
27+
- 知乎
28+
- 慢深度思考
29+
- 回答 - 文本优先,逻辑导向
30+
- “解构”审视需求
31+
- “思想辩论场”
32+
- 小红书
33+
- 快解决方案
34+
- 笔记 - 视觉优先,氛围导向
35+
- “建构”制造需求
36+
- “消费指南”
37+
38+
---
39+
40+
> Pessimists sound smart, optimists make money.
41+
42+
- 只有‘建构’才能让人付出。解构带来清醒,但建构能制造需求。
43+
- 一个追求“为什么”(知乎),必然导向解构;一个追求“怎么办”和“好不好看”(小红书),必然导向建构。
44+
- 知乎和小红书有哪些区别? - https://www.zhihu.com/question/343544428
45+
- 知乎:在解构一切。
46+
- 小红书:在建构“可能性”。

notes/philosophy/philosophy-glossary.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,19 @@ tags:
55

66
# Philosophy Glossary
77

8-
| en | cn |
9-
| -------------- | ---- |
10-
| paradox | 悖论 |
11-
| Philosophy | 哲学 |
12-
| Self-Reference | 自指 |
8+
| en | cn |
9+
| -------------- | -------- |
10+
| paradox | 悖论 |
11+
| Philosophy | 哲学 |
12+
| Self-Reference | 自指 |
13+
| Deconstruction | 解构 |
14+
| Construction | 构建 |
15+
| Constructivism | 建构主义 |
16+
| Epistemology | 认识论 |
17+
| Metaphysics | 形而上学 |
18+
| Ethics | 伦理学 |
19+
| Aesthetics | 美学 |
20+
| Logic | 逻辑学 |
1321

1422
- Self-Reference
1523
- https://plato.stanford.edu/entries/self-reference/
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
title: 飞书文档
3+
---
4+
5+
# 飞书文档
6+
7+
```ts
8+
window.DATA = {
9+
clientVars: {
10+
code: 0,
11+
message: 'success',
12+
mode: 7,
13+
data: {
14+
block_map: {
15+
id: {
16+
data: {
17+
type: 'text',
18+
text: {},
19+
children: [],
20+
comments: [],
21+
folded: false,
22+
hidden: false,
23+
locked: false,
24+
parent_id: '',
25+
author: '',
26+
revisions: null,
27+
},
28+
id: '',
29+
version: 1,
30+
},
31+
},
32+
block_sequence: [],
33+
concurrent: true,
34+
cursor: '',
35+
editor_map: {
36+
id: { display_name: '' },
37+
},
38+
external_mention_url: null,
39+
has_more: true,
40+
id: '',
41+
mention_page_title: {},
42+
meta_map: {},
43+
next_cursors: [],
44+
preloadedImages: null,
45+
skip_blocks: [],
46+
structure_version: 3543,
47+
synced_block_url: {},
48+
type: 'CLIENT_VARS',
49+
user_map: null,
50+
},
51+
},
52+
meta: {
53+
title: 'TITLE',
54+
description: 'Feishu Docs - A new way to create and share content',
55+
token: 'abcd',
56+
iconInfo: {
57+
type: 0,
58+
key: '',
59+
},
60+
isPermitted: true,
61+
isDeleted: false,
62+
tenantId: '1',
63+
},
64+
};
65+
```
66+
67+
- snapshot
68+
- gzip 的内容

0 commit comments

Comments
 (0)