init
This commit is contained in:
		
							
								
								
									
										66
									
								
								mark/assistant-kevisual/esm/docker-deploy.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										66
									
								
								mark/assistant-kevisual/esm/docker-deploy.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,66 @@
 | 
			
		||||
## esm.sh docker
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
docker pull ghcr.io/esm-dev/esm.sh
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
docker pull m.daocloud.io/ghcr.io/esm-dev/esm.sh
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## 部署配置
 | 
			
		||||
 | 
			
		||||
`config.json`
 | 
			
		||||
 | 
			
		||||
```json
 | 
			
		||||
{
 | 
			
		||||
  "port": 8080,
 | 
			
		||||
  "npmRegistry": "https://registry.npmjs.org/"
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
`compose.yml`
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
version: '3'
 | 
			
		||||
services:
 | 
			
		||||
  esm:
 | 
			
		||||
    image: ghcr.io/esm-dev/esm.sh:latest
 | 
			
		||||
    container_name: esm
 | 
			
		||||
    ports:
 | 
			
		||||
      - '12000:8080'
 | 
			
		||||
    environment:
 | 
			
		||||
      - LOG_LEVEL=debug
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./config.json:/esmd/config.json
 | 
			
		||||
      - ./data:/esmd
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## 介绍
 | 
			
		||||
 | 
			
		||||
Available environment variables:
 | 
			
		||||
 | 
			
		||||
COMPRESS:使用gzip/brotli压缩HTTP响应,默认值为true(启用)。
 | 
			
		||||
CUSTOM_LANDING_PAGE_ORIGIN:自定义着陆页来源地址,默认为空。
 | 
			
		||||
CUSTOM_LANDING_PAGE_ASSETS:自定义着陆页资源文件(以逗号分隔),默认为空。
 | 
			
		||||
CORS_ALLOW_ORIGINS:允许的CORS来源(以逗号分隔),默认允许所有来源(*)。
 | 
			
		||||
LOG_LEVEL:日志级别,可选值["debug", "info", "warn", "error"],默认为"info"。
 | 
			
		||||
ACCESS_LOG:是否启用访问日志,默认false(禁用)。
 | 
			
		||||
MINIFY:是否压缩构建后的JS/CSS文件,默认true(启用)。
 | 
			
		||||
NPM_QUERY_CACHE_TTL:NPM查询缓存有效期,默认10分钟。
 | 
			
		||||
NPM_REGISTRY:全局NPM镜像源,默认为"https://registry.npmjs.org/"。
 | 
			
		||||
NPM_TOKEN:全局NPM镜像源的访问令牌。
 | 
			
		||||
NPM_USER:全局NPM镜像源的访问用户名。
 | 
			
		||||
NPM_PASSWORD:全局NPM镜像源的访问密码。
 | 
			
		||||
SOURCEMAP:是否为构建的JS/CSS文件生成源码映射,默认true(启用)。
 | 
			
		||||
STORAGE_TYPE:存储类型,可选值["fs", "s3"],默认为"fs"(本地文件系统)。
 | 
			
		||||
STORAGE_ENDPOINT:存储服务端点,默认路径为"~/.esmd/storage"。
 | 
			
		||||
STORAGE_REGION:S3存储区域(仅S3存储需要)。
 | 
			
		||||
STORAGE_ACCESS_KEY_ID:S3存储的访问密钥ID。
 | 
			
		||||
STORAGE_SECRET_ACCESS_KEY:S3存储的私有访问密钥。
 | 
			
		||||
 | 
			
		||||
You can also create your own Dockerfile based on ghcr.io/esm-dev/esm.sh:
 | 
			
		||||
 | 
			
		||||
FROM ghcr.io/esm-dev/esm.sh:latest
 | 
			
		||||
ADD --chown=esm:esm ./config.json /etc/esmd/config.json
 | 
			
		||||
CMD ["esmd", "--config", "/etc/esmd/config.json"]
 | 
			
		||||
							
								
								
									
										13
									
								
								mark/assistant-kevisual/minio/mc.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								mark/assistant-kevisual/minio/mc.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
# mc 的一些常用命令
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## mc
 | 
			
		||||
```sh
 | 
			
		||||
mc alias set 'markminio' 'http://192.168.31.39:9000' 'admin' 'admin123'
 | 
			
		||||
mc mirror --watch ./mark markminio/mark --overwrite
 | 
			
		||||
 | 
			
		||||
mc mirror  markminio/mark mark --overwrite
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								mark/assistant-kevisual/minio/minio-serve.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								mark/assistant-kevisual/minio/minio-serve.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
## minio-serve
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										3
									
								
								mark/assistant-kevisual/readme.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mark/assistant-kevisual/readme.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
# assistant 助手
 | 
			
		||||
 | 
			
		||||
使用ai和本地部署,解决一切期望,尽可能解决的东西。
 | 
			
		||||
							
								
								
									
										1
									
								
								mark/common/alist.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								mark/common/alist.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
123123
 | 
			
		||||
							
								
								
									
										1
									
								
								mark/common/b.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								mark/common/b.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
this is a test4
 | 
			
		||||
							
								
								
									
										0
									
								
								mark/common/calibre.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/calibre.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/cherry-studio.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/cherry-studio.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/dify.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/dify.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/fastgpt.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/fastgpt.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/gitea.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/gitea.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/hoppscotch.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/hoppscotch.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/jupyter.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/jupyter.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/localsend.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/localsend.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/logseq.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/logseq.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/minio.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/minio.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/navidrome.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/navidrome.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/nginx.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/nginx.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/obsidian.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/obsidian.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/ollama.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/ollama.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/pot.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/pot.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/rust-desktop.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/rust-desktop.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/searxng.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/searxng.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/snipaster.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/snipaster.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/umami.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/umami.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/vaultwarden.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/vaultwarden.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/vllm.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/vllm.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/webdav.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/webdav.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/common/xiaoya.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/common/xiaoya.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/db/minio.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/db/minio.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/db/postgres.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/db/postgres.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/db/redis.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/db/redis.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										15
									
								
								mark/docker/proxy.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								mark/docker/proxy.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
## proxy 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 源站               | 替换为                | 备注                                           |
 | 
			
		||||
| ------------------ | --------------------- | ---------------------------------------------- |
 | 
			
		||||
| docker.elastic.co  | elastic.m.daocloud.io |                                                |
 | 
			
		||||
| docker.io          | docker.m.daocloud.io  |                                                |
 | 
			
		||||
| gcr.io             | gcr.m.daocloud.io     |                                                |
 | 
			
		||||
| ghcr.io            | ghcr.m.daocloud.io    |                                                |
 | 
			
		||||
| k8s.gcr.io         | k8s-gcr.m.daocloud.io | k8s.gcr.io 已被迁移到 registry.k8s.io          |
 | 
			
		||||
| registry.k8s.io    | k8s.m.daocloud.io     |                                                |
 | 
			
		||||
| mcr.microsoft.com  | mcr.m.daocloud.io     |                                                |
 | 
			
		||||
| nvcr.io            | nvcr.m.daocloud.io    |                                                |
 | 
			
		||||
| quay.io            | quay.m.daocloud.io    |                                                |
 | 
			
		||||
| registry.ollama.ai | ollama.m.daocloud.io  | 实验内测中,[使用方法](#加速-ollama--deepseek) |
 | 
			
		||||
							
								
								
									
										1
									
								
								mark/github.com/site/github-markdown-css.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								mark/github.com/site/github-markdown-css.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
https://github.com/sindresorhus/github-markdown-css
 | 
			
		||||
							
								
								
									
										0
									
								
								mark/learning/anki/anki-sync-server.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/learning/anki/anki-sync-server.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/learning/anki/anki.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/learning/anki/anki.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/mac/iterm.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/mac/iterm.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/mac/raycast.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/mac/raycast.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								mark/npm/registry.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								mark/npm/registry.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										27
									
								
								mark/pdf/mineru/download.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								mark/pdf/mineru/download.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
			
		||||
安装环境
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
conda create -n mineru 'python>=3.10' -y
 | 
			
		||||
conda activate mineru
 | 
			
		||||
pip install -U "magic-pdf[full]" -i https://mirrors.aliyun.com/pypi/simple
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
下载模型
 | 
			
		||||
```sh
 | 
			
		||||
pip install modelscope
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
curl -o download_models.py https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/scripts/download_models.py
 | 
			
		||||
 | 
			
		||||
python download_models.py
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
配置文件在 `magic-pdf.json`
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
使用
 | 
			
		||||
```sh
 | 
			
		||||
magic-pdf -p {some_pdf} -o {some_output_dir} -m auto
 | 
			
		||||
magic-pdf -p test.pdf -o test -m auto
 | 
			
		||||
```
 | 
			
		||||
							
								
								
									
										4
									
								
								mark/tools/conda/conda.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mark/tools/conda/conda.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
conda init --system --all
 | 
			
		||||
```
 | 
			
		||||
		Reference in New Issue
	
	Block a user