Skip to content

Commit

Permalink
update edms std
Browse files Browse the repository at this point in the history
  • Loading branch information
wenerme committed Oct 29, 2024
1 parent c4b541a commit 359377d
Show file tree
Hide file tree
Showing 37 changed files with 1,491 additions and 95 deletions.
8 changes: 8 additions & 0 deletions notes/ai/llm/open-webui.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: OpenWebUI
---

# OpenWebUI

- [open-webui](https://github.com/open-webui/open-webui)
- MIT, Svelte, Python
2 changes: 2 additions & 0 deletions notes/dev/design/design-drive.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,8 @@ type sustained struct {

## 参考 {#reference}

- API
- https://github.com/hanwen/go-fuse/blob/master/fs/api.go
- https://github.com/vfile/vfile
- https://github.com/gulpjs/vinyl
- https://en.wikipedia.org/wiki/Filename
Expand Down
24 changes: 14 additions & 10 deletions notes/dev/dict.md
Original file line number Diff line number Diff line change
Expand Up @@ -1103,19 +1103,23 @@ tags:

- https://www.ibm.com/docs/en/zos/2.2.0?topic=basics-purpose-realms

## glossary vs terminology vs concept
## glossary vs terminology vs concept vs terms

- glossary - 术语表
- 术语列表 - 专用语列表
- 一般不会详细说明
- 通常关联上下文 - 某某的术语表
- 在特定上下文下表述不同含义
- 例如: 缩写、专有名词、行业用语、通用说法
- terminology - 专用语、专用语
- 单个
- 包含专用术语的列表
- 通常不提供详细解释
- 常用于某特定上下文或领域
- 示例:包括缩写、专有名词、行业用语
- terminology - 术语
- 指某一领域或主题中的专用词汇
- 多为单独的术语
- concept - 概念
- 解释性质
- terminology 通常不易于理解,需要解释概念
- 对术语或其他抽象思想的解释
- 较抽象,需要详细说明和阐释
- 通常是用来解释复杂的 terminology
- terms - 词汇
- 指一般或特定语境中的词语
- 范围较广,可以是任何术语或普通词语

## status vs state

Expand Down
19 changes: 19 additions & 0 deletions notes/dev/reverse/reverse-engineering-awesome.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@ tags:

- [rr-debugger/rr](https://github.com/rr-debugger/rr)
- [radareorg/radare2](https://github.com/radareorg/radare2)
- CLI
- [rizinorg/cutter](https://github.com/rizinorg/cutter)
- GPLv3, C++
- Ghidra
- IDA Pro

```bash
brew install radare2
r2 -v

# https://cutter.re/docs/user-docs/shortcuts.html
brew install --cask cutter # GUI for radare2
```

---

- PLT - Procedure Linkage Table
- `Sdk::Decrypt(std::string const&, std::string const&, std::string*)`
- GOT - Global Offset Table

## HEX Editor

Expand Down
56 changes: 56 additions & 0 deletions notes/dev/theory/ioc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
title: IoC
---

# IoC

- IoC - Inverson of Control - 控制反转
- DI - Dependency Injection - 依赖注入
- 构造函数
- Setter
- Interface
- Annotation
- XML
- Dependency Lookup - 依赖查找

---

- 提供上下文容器 - Container/ApplicationContext
- 不管是否使用,应用都存在潜在的上下文
- 不使用容器,则可能是直接污染全局 或者 维护局部上下文
- 级联容器 - Parent/Child Container
- 全局、请求、模块
- 动态装配 - Dynamic Assembly
- 实现模块的动态加载、可替换、插件
- 生命周期管理 - Lifecycle
- 避免循环依赖 - Circular Dependency

---

- 大型一点的应用很难不使用 IoC


---

- 好处
- 依赖管理
- 模块化
- 解耦
- 动态装配/插件
- 方便测试

---

- 后端
- JVM Spring, Guice, Dagger
- Node Nest.js
- Golang fix, wire, dig
- 前端
- Angular
- 内置 IoC
- React
- Context
- Vue.js
- vue3 - provide/inject
- Inversify
- Awilix
10 changes: 10 additions & 0 deletions notes/dev/theory/rpc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: RPC
---

# RPC

- RPC - Remote Procedure Call
- 远程过程调用/远程方法调用
- 可以理解为 一种路由
- 有 Service & Method 概念
6 changes: 6 additions & 0 deletions notes/devops/telementry.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,3 +299,9 @@ turbo telemetry status
```

- https://turbo.build/repo/docs/telemetry

## Hugging Face

- HF_HUB_DISABLE_TELEMETRY
- DISABLE_TELEMETRY
- DO_NOT_TRACK
28 changes: 28 additions & 0 deletions notes/hardware/interface/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,31 @@ title: 硬件接口
---

# 硬件接口

## Power

- 主板 24pin + CPU 8pin
- 2组 12V, 每组 6A, 累计 12A, 144W
- 5组 5V, 共 30A, 150W
- 4组 3.3V, 共 24A, 79.2W
- 不含 -12V 和 5Vsb, 最高 373.2W, 更高级别端子可达到 559.8W, 684.2W
- Molex 39-28-1243
- Molex 39-01-2240
- Molex 39-00-0168
- Molex 44476-1111
- ATX 12V 4Pin
- ATX 12V/EPS 12V 4+4Pin
- CPU - 4Pin,4+4Pin,8Pin
- 12V
- 4Pin - 16A, 22A, 24A - 192W - 288W
- 8Pin - 336W - 576W
- PCIe - 6Pin, 6+2Pin
- Peripheral/Molex - D4, 大4Pin
- 12V
- 5V
- SATA 电源口 - 15Pin
- 3组, 每组 3Pin, 每 Pin 1.5A
- 1.5A - 3Pin, 4.5A
- 3.3V 14.85W
- 5V 22.5W
- 12V 54W
5 changes: 5 additions & 0 deletions notes/hardware/power/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ title: 电源

## Power consumption

- SATA - 机械硬盘
- 2.5" 5400 RPM: 1.7W
- 2.5" 7200 RPM: 2.5W
- 3.5" 5400 RPM: 6.5W
- 3.5" 7200 RPM: 9W
- RasPi0 / Pi Zero W
- 100 mA: 没有连接外设,WiFi和蓝牙关闭
- 160 mA: 蓝牙开启
Expand Down
10 changes: 9 additions & 1 deletion notes/hardware/power/battery.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ title: 电池

## 锂电池

- 18650
- 18650, 168A, 1865
- 3.7 v
- 1500–3500 mAh
- 18mm x 65mm
- 21700, 2170
- 特斯拉 Model 3
- 3000–5800 mAh
- 21mm x 70mm
- 4680, 46800
- 9000 mAh
- 46mm x 80mm
7 changes: 6 additions & 1 deletion notes/languages/go/go-awesome.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tags:
- [ent](./lib/ent.md) - ⭐️
- 基于代码生成
- Meta 信息完善,更适合复杂业务逻辑
- 命令行
- 命令行/Command
- [urfave/cli](https://github.com/urfave/cli) - ⭐️
- 简单易用
- [spf13/cobra](https://github.com/spf13/cobra) - ⭐️
Expand All @@ -32,6 +32,8 @@ tags:
- urfave/cli 更加 declarative
- [muesli/coral](https://github.com/muesli/coral)
- cobra fork with only 4 dependencies
- [go-cmd/cmd](https://github.com/go-cmd/cmd)
- MIT, Golang
- IoC/DI
- [fx](./lib/fx.md)
- dig
Expand Down Expand Up @@ -228,6 +230,9 @@ tags:
- revel
- [danielgtaylor/huma](https://github.com/danielgtaylor/huma)
- Huma REST/GraphQL API Framework for Golang with OpenAPI 3
- swaggo/swag
- [swaggo/http-swagger](https://github.com/swaggo/http-swagger)
- [goadesign/goa](https://github.com/goadesign/goa)

### 增强处理 {#enhance}

Expand Down
9 changes: 9 additions & 0 deletions notes/languages/php/hyperf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: hyperf
---

# hyperf

```bash
ls ./runtime/logs/hyperf-*.log
```
7 changes: 7 additions & 0 deletions notes/languages/php/php-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ tags:

# PHP FAQ

```bash
php -m # 查看已经加载的模块
php --ini # 查看配置文件
php -i # phpinfo
php -r 'echo "Hello, World!\n";'
```

## Timezone

- 默认使用 TZ 环境变量
Expand Down
1 change: 1 addition & 0 deletions notes/languages/python/python-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ python -V && pip -V
pip list --outdated
```

- PYTHONHOME
- PYTHONPATH
- https://docs.python.org/3/using/cmdline.html

Expand Down
4 changes: 4 additions & 0 deletions notes/os/linux/fs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ title: FS

# FS

- [Filesystem Hierarchy Standard](./fs-hierarchy.md)

## FileSystem

**逻辑/内存**

| fs | mount point | notes |
Expand Down
47 changes: 43 additions & 4 deletions notes/os/linux/fs/fs-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tags:
- SPKM (Simple Public Key Mechanism)
- NFSv4 ACLs (Access Control Lists)

## 文件名
## 文件名 {#filename}

- Linux
- 不可以包含 `/`, `\x00`
Expand All @@ -42,11 +42,50 @@ tags:

- https://stackoverflow.com/a/9847573/1870054

## 文件系统限制
## attr and xattr {#xattr}

- attr
- size
- type
- mode
- uid, gid
- atime, mtime, ctime
- xattr
- namespace
- user
- user.comment
- trusted
- security
- system
- 一般上限 64kb
- 存储位置
- ext4 inode - 256/128 byte
- xfs b+
- zfs 内置 xattr - 不存在空间不够
- `zfs get xattr DATASET`
- `zfs set xattr=on DATASET`
- 扩展块
- 特殊数据结构
- NTFS ADS - Alternate Data Streams
- `:<stream_name>`
- `example.txt` -> `example.txt:stream1`

---

- attr
- ls
- stat
- xattr
- getfattr
- setfattr
- attr - `attr -l file`
- [xattr.7](https://man7.org/linux/man-pages/man7/xattr.7.html)

## 文件系统限制 {#limits}

- [What are the file and file system size limitations for Red Hat Enterprise Linux?](https://access.redhat.com/solutions/1532)

## atime, mtime, ctime
## atime, mtime, ctime {#time}

| field | mean | stand for |
| ----- | ----------- | ----------- |
Expand Down Expand Up @@ -107,7 +146,7 @@ debugfs -R "stat <$(stat -c %i /etc/profile)>" /dev/sda2

> The size of this disk is 2 TiB (2199023255552 bytes). DOS partition table format cannot be used on drives for volumes larger than 2199023255040 bytes for 512-byte sectors. Use GUID partition table format (GPT).
## 重新挂载为可读写
## 重新挂载为可读写 {#remount-rw}

```bash
mount -o rw,remount /
Expand Down
Loading

0 comments on commit 359377d

Please sign in to comment.