Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wenerme committed Nov 28, 2023
1 parent 08b24e2 commit 76db02a
Show file tree
Hide file tree
Showing 58 changed files with 1,177 additions and 209 deletions.
1 change: 1 addition & 0 deletions notes/ai/ai-glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:

| abbr. | for | cn |
| ----- | -------------------------------------------- | -------------------- |
| GPT | Generative Pre-trained Transformer | 生成型预训练变换模型 |
| LLM | Large Language Model | 大语言模型 |
| LoRA | Language of Rules and Actions | 语言规则与行动语言 |
| LLaMa | Large Language Model for Machine Translation | 机器翻译的大语言模型 |
Expand Down
25 changes: 0 additions & 25 deletions notes/ai/chatgpt/README.md

This file was deleted.

1 change: 1 addition & 0 deletions notes/ai/coding/continue.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ title: continue
- Jetbrain 插件 https://plugins.jetbrains.com/plugin/22707-continue

```
# PostHog
allow_anonymous_telemetry=False
```

Expand Down
21 changes: 21 additions & 0 deletions notes/ai/dalle.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,24 @@ title: DALL-E
- 不能生成 中文

:::

- gen_id
- 需要在相同 session
- 可以要求返回 DALLE gen_id
- referenced_image_ids 使用 gen_id
- https://community.openai.com/t/after-upgrade-seeds-doesnt-work-generation-id-is-introduced/462161/7
- https://twitter.com/MooenyChu/status/1727497076786045346

````md
Send this JSON data to the image generator, do not modify anything. After generating an image, show me the JSON data that the image generator returns to you.

```
{
"size": "1024x1024",
"prompts": [
"Japanese anime style. In a dimly lit dungeon, a fearsome beast with sharp claws and glowing blue eyes stands guard, ready to attack any intruder."
],
"seeds": [3075182356]
}
```
````
2 changes: 1 addition & 1 deletion notes/ai/gpt/gpt-awesome.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tags:

# GPT Awesome

- GPT - Generative Pre-trained Transformer - 生成型已训练变换模型
- GPT - Generative Pre-trained Transformer - 生成型预训练变换模型
- wikipedia [GPT-3](https://en.wikipedia.org/wiki/GPT-3)
- autoregressive language model - 自回归语言模型
- [openai/gpt-3](https://github.com/openai/gpt-3)
Expand Down
2 changes: 2 additions & 0 deletions notes/ai/prompt-awesome.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ https://twitter.com/dotey/status/1722831122285932592
https://github.com/linexjlin/GPTs
https://crackgpts.com/
https://github.com/LouisShark/chatgpt_system_prompt
https://gptseek.com/
https://twitter.com/FinanceYF5/status/1726456413227298905
https://chat.openai.com/g/g-4nCSDIETH-phototoavatar
广告文案
Expand Down
11 changes: 11 additions & 0 deletions notes/ai/openai.md → notes/ai/service/openai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,14 @@ Rate limit reached for default-gpt-3.5-turbo in organization org-xxx on requests
```

## 您的银行卡被拒绝了。


## Access denied

尝试不用 VPN 或者换 VPN

## 清理 Auth 信息

```js
javascript:window.localStorage.removeItem(Object.keys(window.localStorage).find(i=>i.startsWith('@@auth0spajs'))
```
File renamed without changes.
1 change: 1 addition & 0 deletions notes/ai/stable-diffusion/stable-diffusion-awesome.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tags:

# Stable Diffusion Awesome

- [apple/ml-stable-diffusion](https://github.com/apple/ml-stable-diffusion)
- https://latent-consistency-models.github.io/
- https://www.fal.ai/models/latent-consistency-sd
- https://github.com/fal-ai
Expand Down
2 changes: 2 additions & 0 deletions notes/db/design-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ tags:
- K-Sortable
- 基本有序
- Prefetch 优化 - 非常容易连续命中
- https://sqids.org/
- HN https://news.ycombinator.com/item?id=38414914

## 主键类型

Expand Down
21 changes: 21 additions & 0 deletions notes/dev/dev-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,27 @@ mvn dependency:purge-local-repository -DactTransitively=false -DreResolve=false
mvn help:evaluate -Dexpression=settings.localRepository -q -DforceStdout
```

## clean

```bash
brew cleanup
go clean -modcache

mvn dependency:purge-local-repository -DactTransitively=false -DreResolve=false --fail-at-end
gradle clean

ls ~/.nvm/versions/node/v{12,14,16}* -d 2>/dev/null | xargs -n1 basename
# for s in $( ls ~/.nvm/versions/node/v{12,14,16}* -d 2>/dev/null | xargs -n1 basename );do echo nvm uninstall $s; done
rm -rf ~/.nvm/versions/node/v{12,14,16}*

nvm cache clear
yarn cache clean
npm cache clean --force
pnpm store prune

pip cache purge
```

## How to ask

- https://stackoverflow.com/help/minimal-reproducible-example
Expand Down
7 changes: 0 additions & 7 deletions notes/evolve/levelup-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ title: Level UP in China
| NPDP | 国际公认的产品开发专业认证 |
| MBA |

## 上海居住证

- 积分查询登陆 https://jzzjf.rsj.sh.gov.cn/jzzjf/
- 打印没有二维码时 临时修改站点设置,允许 Insecure content
- 档案核实进度查询 http://222.68.19.232/webMaster/ggrs/ggrs_cxhs.htm
- [紧缺专业目录](http://jzzjf.rsj.sh.gov.cn/jzzjf/pingfen/jqzyml.htm)
- https://etax.chinatax.gov.cn/

## 会计

Expand Down
39 changes: 0 additions & 39 deletions notes/evolve/mgmt/mgmt-faq.md

This file was deleted.

13 changes: 13 additions & 0 deletions notes/languages/go/go-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,26 @@ docker run --rm -it --entrypoint bash \
- v1 - 默认
- v2 - CMPXCHG16B, LAHF, SAHF, POPCNT, SSE3, SSE4.1, SSE4.2, SSSE3
- 2009: Nehalem, Jaguar, Intel Atom Silvermont, QEMU
- amdv2
- v3 - AVX, AVX2, BMI1, BMI2, F16C, FMA, LZCNT, MOVBE, OSXSAVE
- 2015 - Haswell, Excavator
- amdv3
- v4 - AVX512F, AVX512BW, AVX512CD, AVX512DQ, AVX512VL
- 2017: Skylake-X, Skylake-SP
- 2022: Zen 4
- amdv4
- 参考
- [GOAMD64](https://github.com/golang/go/wiki/MinimumRequirements#amd64)
- [Microarchitecture levels](https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels)

```bash
# AMDv3
# avx 可能有,但可能没 avx2
grep -oE 'avx2|bmi1|bmi2|f16|fma' /proc/cpuinfo | sort -u
# AMDv4
grep -oE 'avx512' /proc/cpuinfo | sort -u
```

## GOARM

- ARM 浮点数逻辑
Expand Down
5 changes: 0 additions & 5 deletions notes/mgmt/README.md

This file was deleted.

3 changes: 3 additions & 0 deletions notes/network/internet/ip.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ curl ipecho.net/plain
curl icanhazip.com
curl ipv4.icanhazip.com

curl 'https://vv.video.qq.com/checktime?otype=json&callback=onCheckTime'

# 使用 DNS 的方式获取
dig +short myip.opendns.com @resolver1.opendns.com

```

## Private
Expand Down
37 changes: 21 additions & 16 deletions notes/ops/mirrors.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ title: Mirrors
| https://mirrors.cloud.tencent.com/ | 腾讯云 |
| https://mirrors.gitee.com/ | Gitee |

- https://fastly.jsdelivr.net
- https://cnd.jsdelivr.net

**高校镜像**

| URL | 地址 | 信息 |
Expand Down Expand Up @@ -66,6 +63,14 @@ title: Mirrors
- https://github.com/SUSTech-CRA/chinese-opensource-mirror-site
- https://mirrors.cernet.edu.cn/list

## jsdelivr

- https://fastly.jsdelivr.net
- https://cnd.jsdelivr.net
- https://jsdelivr.wener.me
- https://github.com/54ayao/Chinajsdelivr
- jsd.cdn.zzko.cn

## Github

- https://gitcode.net
Expand Down Expand Up @@ -169,27 +174,27 @@ EOF
mirrors:
docker.io:
endpoint:
- https://dockercr.wener.me
- https://docker.m.daocloud.io
- https://registry-1.docker.io
- https://dockercr.wener.me
- https://docker.m.daocloud.io
- https://registry-1.docker.io
ghcr.io:
endpoint:
- https://ghcr.wener.me
- https://ghcr.io
- https://ghcr.wener.me
- https://ghcr.io
registry.k8s.io:
endpoint:
- https://k8scr.wener.me
- https://registry.k8s.io
- https://k8scr.wener.me
- https://registry.k8s.io
gcr.io:
endpoint:
- https://gcr.wener.me
- https://gcr.m.daocloud.io
- https://gcr.io
- https://gcr.wener.me
- https://gcr.m.daocloud.io
- https://gcr.io
quay.io:
endpoint:
- https://quaycr.wener.me
- https://quay.m.daocloud.io
- https://quay.io
- https://quaycr.wener.me
- https://quay.m.daocloud.io
- https://quay.io
```
## HomeBrew
Expand Down
71 changes: 71 additions & 0 deletions notes/os/linux/fs/zfs/zfs-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,3 +375,74 @@ zpool online data DISK
zpool clear data
zpool scrube data # 推荐
```

## remount zvol rw

```bash
mount -o remount,rw /data/docker
```

- cache 异常后导致 zvol 被重新挂载为 ro
- clear cache 的 error 后还是无法挂载,因为 fs 损坏


```ansi
EXT4-fs warning (device zd0): ext4_end_bio:343: I/O error 3 writing to inode 5767264 starting block 14909936)
Buffer I/O error on device zd0, logical block 14909936
EXT4-fs warning (device zd0): ext4_end_bio:343: I/O error 3 writing to inode 5898267 starting block 11927556)
Buffer I/O error on device zd0, logical block 11927556
EXT4-fs warning (device zd0): ext4_end_bio:343: I/O error 3 writing to inode 5898258 starting block 20496389)
Buffer I/O error on device zd0, logical block 20496389
EXT4-fs warning (device zd0): ext4_end_bio:343: I/O error 3 writing to inode 5898266 starting block 2630818)
Buffer I/O error on device zd0, logical block 2630818
EXT4-fs warning (device zd0): ext4_end_bio:343: I/O error 3 writing to inode 2919521 starting block 16194810)
Buffer I/O error on device zd0, logical block 16194810
Buffer I/O error on device zd0, logical block 16194811
Buffer I/O error on device zd0, logical block 16194812
Buffer I/O error on device zd0, logical block 16194813
EXT4-fs warning (device zd0): ext4_end_bio:343: I/O error 3 writing to inode 2920494 starting block 14332529)
EXT4-fs warning (device zd0): ext4_end_bio:343: I/O error 3 writing to inode 2883634 starting block 24493815)
Buffer I/O error on device zd0, logical block 24493815
EXT4-fs warning (device zd0): ext4_end_bio:343: I/O error 3 writing to inode 2883634 starting block 24493816)
Buffer I/O error on device zd0, logical block 14332529
Buffer I/O error on dev zd0, logical block 0, lost async page write
Buffer I/O error on dev zd0, logical block 1, lost async page write
Buffer I/O error on dev zd0, logical block 2, lost async page write
EXT4-fs error (device zd0): ext4_check_bdev_write_error:217: comm kworker/u8:0: Error while async write back metadata
EXT4-fs (zd0): previous I/O error to superblock detected
Buffer I/O error on dev zd0, logical block 5, lost async page write
Buffer I/O error on dev zd0, logical block 6, lost async page write
Buffer I/O error on dev zd0, logical block 8, lost async page write
Buffer I/O error on dev zd0, logical block 1048588, lost async page write
Buffer I/O error on dev zd0, logical block 1048589, lost async page write
Buffer I/O error on dev zd0, logical block 1466067, lost async page write
Buffer I/O error on dev zd0, logical block 1505175, lost async page write
EXT4-fs warning (device zd0): ext4_end_bio:343: I/O error 3 writing to inode 2883634 starting block 24493838)
EXT4-fs error (device zd0): ext4_check_bdev_write_error:217: comm VM Periodic Tas: Error while async write back metadata
EXT4-fs warning (device zd0): ext4_end_bio:343: I/O error 3 writing to inode 2883634 starting block 24493839)
Aborting journal on device zd0-8.
EXT4-fs error (device zd0) in ext4_convert_unwritten_io_end_vec:4859: IO failure
EXT4-fs (zd0): failed to convert unwritten extents to written extents -- potential data loss! (inode 2883634, error -5)
JBD2: I/O error when updating journal superblock for zd0-8.
EXT4-fs error (device zd0): ext4_journal_check_start:83: comm k3s-server: Detected aborted journal
EXT4-fs (zd0): previous I/O error to superblock detected
EXT4-fs error (device zd0): ext4_journal_check_start:83: comm http-nio-8080-P: Detected aborted journal
EXT4-fs (zd0): I/O error while writing superblock
EXT4-fs (zd0): Remounting filesystem read-only
EXT4-fs (zd0): I/O error while writing superblock
```

- 停止服务自动启动
- reboot
- fsck

```bash
umount /dev/zd0
fsck -y /dev/zd0
mount -a

# ensure mount point working as expected
touch /data/docker/test

# start service
```
Loading

0 comments on commit 76db02a

Please sign in to comment.