Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wenerme committed Nov 17, 2024
1 parent a16a504 commit 60ea754
Show file tree
Hide file tree
Showing 65 changed files with 1,673 additions and 145 deletions.
2 changes: 2 additions & 0 deletions notes/ai/llm/llm-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ tags:
- https://groq.com/pricing/
- https://openai.com/api/pricing/
- https://www.anthropic.com/pricing
- https://fireworks.ai/pricing
- https://www.anyscale.com/pricing
- 参考
- https://www.vellum.ai/blog/llama-3-1-70b-vs-gpt-4o-vs-claude-3-5-sonnet

Expand Down
1 change: 1 addition & 0 deletions notes/ai/llm/ollama.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ ollama pull qwen2:7b # 中文相对好点

# vision
ollama pull llama3.2-vision:11b
#ollama pull llama3.2-vision:90b
```

| env | default | desc |
Expand Down
1 change: 1 addition & 0 deletions notes/ai/ml/ml-awesome.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ tags:

## UI/Desktop/GUI/WebUI {#ui}

- omnimodel
- [Yonom/assistant-ui](https://github.com/Yonom/assistant-ui)
- React Components for AI Chat
- [lobehub/lobe-chat](https://github.com/lobehub/lobe-chat)
Expand Down
22 changes: 22 additions & 0 deletions notes/ai/prompt-awesome.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,25 @@ Under NO circumstances should you EVER give, and this is EXTREMELY IMPORTANT, an
```
Rename all Javascript variables and functions to have descriptive names based on their usage in the code
```

## chatgpt memory

```
based on what you know about me. draw a picture of what you think my current life looks like
```

<!--
elaborate
举两个 Prompt 中极致压缩的例子:
1. 苏格拉底
只要你 Prompt 设置这个角色,那么 AI 就会明白要向你提问,通过启发式的问题来引导你
2. Roast
只要你让 AI 去 roast,它就会开启吐槽模式,尤其是 Claude 更是厉害
read thoroughly and write an outline(following the Minto Pyramid principle) in **Chinese** using original words. Return in markdown:
-->
20 changes: 20 additions & 0 deletions notes/ai/service/ai-service-awesome.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ tags:

# AI Service Awesome

- Application/WebUI/UI/Desktop/Consumer
- [OpenAI ChatGPT](https://chat.openai.com/)
- [POE](https://poe.com/)
- [Google Gemini Advanced](https://ai.google/)
- [Microsoft Bing AI](https://www.bing.com/new)
- [Anthropic Claude](https://www.anthropic.com/claude)
- [Hugging Face Transformers](https://huggingface.co/transformers/)
- API/Service/Adapter/Gateway
- [OpenAI API](https://platform.openai.com/docs/api-reference)
- [Google Cloud AI](https://cloud.google.com/products/ai)
- [Microsoft Azure OpenAI Service](https://azure.microsoft.com/services/openai-service/)
- [Amazon SageMaker](https://aws.amazon.com/sagemaker/)
- [IBM Watson API](https://www.ibm.com/watson)
- https://openrouter.ai
- for text only
- https://novita.ai/model-api/pricing
- for text & image models
- https://novita.ai/model-api/model
- https://civitai.com/
- https://windowai.io/
- Prompt IDE/Playrgound
- RAG

Expand Down
2 changes: 1 addition & 1 deletion notes/courses/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 课程

# 课程

- [数学](./math/README.md)
- [数学]
- Stanford [CS221](./cs221/README.md): Artificial Intelligence: Principles and Techniques
- https://www.deeplearningbook.org/
- 3 部分
Expand Down
22 changes: 22 additions & 0 deletions notes/dev/design/design-supervisor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
tags:
- Supervisor
---

# Supervisor

- Supervisor/Controller/Scheduler
- 监控、管理、自动回复、生命周期
- Lifecycle 管理
- 进程、资源、数据、系统组件
- K8S PodStatus - https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#podstatus-v1-core
- Pod.status(PodStatus).phase: string
- Pending
- Running
- Succeeded
- Failed
- Unknown
- ContainerStatus.state: ContainerState
- Waiting
- Running
- Terminated
13 changes: 12 additions & 1 deletion notes/dev/dict.md
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,18 @@ but they also check if the other needs the resource, too. If the resource is req
try to get the other instance of the resource. In the unfortunate case it might happen that the two participants
“bounce” between the two resources, never acquiring it, but always yielding to the other.

## 后台管理系统名称
## language vs script

- language
- 语言
- 一种人类交流的方式
- 例如:中文、英文、法文
- script
- 文字
- 一种书写的方式
- 例如:“简体中文”、“繁体中文”、“拉丁字母”

## 后台管理系统名称 {#admin-system-name}

- Console - 控制台
- 通常指代系统的管理界面
Expand Down
44 changes: 43 additions & 1 deletion notes/dev/format/xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,33 @@ title: xml

# xml

- usecase
- WSDL
- SOAP
- RSS
- Atom
- SVG
- XSLT
- XHTML
- XForms
- XQuery
- XPath
- XPointer
- XLink
- 企业级标准协议
- SOAP
- Web Services
- 金融报文 - SWIFT、FIX
- 医疗 - HL7
- 电信行业
- 文档建模
- MS Office
- Open Office
- PDF
- DocBook
- DITA
- 政府、科研数据交换

```bash
# macOS 工具
brew install xmlstarlet
Expand All @@ -20,5 +47,20 @@ xmlstarlet format --omit-decl --indent-spaces 2 test.xml
xmlstarlet ed -O --inplace -N x=http://www.w3.org/2000/svg \
--update "x:svg/@fill" -v currentColor \
--insert "/x:svg[not(@fill)]" --type attr -n fill -v currentColor
icon.svg
icon.svg
```

## Schema

- complexType
- all - 任意顺序出现,但每个只允许出现一次
- choice
- sequence
- element
- .name
- .type
- .minOccurs
- .maxOccurs
- XML Schema 1.1 https://www.w3.org/XML/Schema
- W3C Recommendation: XML Schema Part 1: Structures
- W3C Recommendation: XML Schema Part 2: Datatypes
2 changes: 2 additions & 0 deletions notes/devops/web/caddy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ docker exec caddy curl -s http://127.0.0.1:2019/config/
caddy file-server export-template
```

- https://github.com/caddyserver/website/blob/master/src/docs/index.html
- https://pastebin.com/9EkfCuhu
- 页面模板 https://github.com/caddyserver/caddy/blob/master/modules/caddyhttp/fileserver/browse.html
- https://caddyserver.com/docs/caddyfile/directives/file_server

Expand Down
1 change: 1 addition & 0 deletions notes/economics/accounting/accounting-awesome.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ tags:
- [易代账](http://e.chanjet.com/)
- [好会计](http://h.chanjet.com/)
- [中国会计网](https://www.canet.com.cn/)
- 金财管家
14 changes: 14 additions & 0 deletions notes/evolve/thoughts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ title: Thoughts

# Thoughts

- 专业程度体现
- 敏感程度
- 例如:美食家能够品尝出食物的区别,而普通人则无法
- 例如:音乐家能够听出乐曲中的细微差别,而普通听众可能无法分辨
- 原则信念
- 例如:当谈论到某个话题时,专家会有自己的原则信念,会有自己的坚持和看法。
- 例如:科学家在面对科学问题时,会坚持基于证据的原则,不轻易被未经验证的信息所动摇。
- 深度理解
- 例如:医生能够理解复杂的医学原理和病理,而普通人只能了解表面的健康知识。
- 例如:工程师能够设计和优化复杂的系统,而普通人可能只会使用这些系统。
- 持续学习
- 例如:专业人士会不断更新自己的知识和技能,以保持在领域内的领先地位。
- 例如:学者会通过阅读最新的研究论文和参加学术会议来保持对领域前沿的了解。

## 前扩展还是后扩展

很多时候业务系统需要对现有的系统应用进行集成使用, 如何进行集成 ?
Expand Down
36 changes: 34 additions & 2 deletions notes/healthcare/lose-weight.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,48 @@ title: 减重

:::

- 有氧训练
- 提升基础代谢,减少能量摄入
- 有氧训练
- 目的
- 燃烧卡路里
- 提高心肺功能
- 提升基础代谢
- 改善心理健康 - 释放内啡肽,减轻压力焦虑,改善情绪
- 增强免疫系统
- 有氧运动
- 跑步、游泳、骑自行车
- 力量训练
- 增加肌肉量,从而提升基础代谢率
- HIIT - 高强度间歇训练
- 冲刺跑、跳绳、快速深蹲
- 健身环
- 30 秒高强度运动,30 秒休息
- 柔韧性和平衡训练
- 瑜伽、普拉提
- 功能性训练
- 提升身体素质
- 饮食建议
- 蔬菜、水果、全谷物,减少高糖、高脂肪食物
- 多喝水
- 充足的睡眠
- 控制压力 - 冥想、瑜伽
- 女性
- 基本 1200-1500 kcal/day
- 轻卡 500 kcal/day
- 男性
- 基本 1500-1800 kcal/day
- 轻卡 600 kcal/day

### 间歇性断食 {#intermittent-fasting}
## 间歇性断食 {#intermittent-fasting}

- 控制卡路里摄入,改善胰岛素敏感性,促进脂肪燃烧。
- 降低血糖水平,减少炎症
- 细胞修复 - 当人感受到饥饿时,细胞会启动自噬过程,有助于清除受损细胞和促进新细胞生成。
- 心血管健康:间歇性断食可能有助于降低血压、胆固醇和其他心血管疾病风险因素

---

> 即使在断食期间,也要确保摄入足够的营养,避免营养不良。
- 8/16 - 8 个小时内进食,另外 16 个小时断食
- 5-2 - 5 天正常进食,2 天很少进食/断食
Expand Down
13 changes: 13 additions & 0 deletions notes/java/build/gradle/gradle-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,16 @@ rm -rf ~/.gradle/daemon

- lombok val
- https://github.com/gradle/gradle/issues/14531

## Proxy


```bash
./gradlew build \
-Dhttp.proxyHost=your.proxy.host -Dhttp.proxyPort=your_proxy_port \
-Dhttp.proxyUser=your_username -Dhttp.proxyPassword=your_password
```

```bash
export GRADLE_OPTS="-Dhttp.proxyHost=your.proxy.host -Dhttp.proxyPort=your_proxy_port -Dhttps.proxyHost=your.proxy.host -Dhttps.proxyPort=your_proxy_port"
```
Loading

0 comments on commit 60ea754

Please sign in to comment.