name: cloudflare-browser-run description: Use when you need to capture screenshots, extract markdown/PDF/HTML, scrape structured data, or crawl web pages via Cloudflare's headless browser service. Covers Quick Actions (stateless HTTP), Browser Sessions (Puppeteer/Playwright/CDP), and the MCP server. Preferred over local browser tools when JS rendering is required and browser tool costs are high. version: 1.0.0 author: Hermes Agent license: MIT metadata: hermes: tags: [cloudflare, browser, scraping, screenshot, markdown, pdf, web-extract, api] related_skills: [hermes-web-extract-billing-fallback, defuddle, tavily-search]
A pattern for building personal knowledge bases using LLMs.
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.
目前使用的是 algernon/writefreely,但這個映像檔亦不支援 ARM。
連線後立即出現清爽的文字首頁,但卻什麼都不能做?
因為預設雖是多人部落格,卻關閉了註冊頁面,此時處於一個無帳號、又無法註冊的尷尬局面,需要一個特殊步驟:
- docker exec -it writefreely sh(進入運行中的 writefreely 容器終端機介面)
- cd /data
一個極簡、python 寫的 microblog,支援 ActivityPub 與大部分 IndieWeb 功能。
使用 docker compose 安裝,須將靜態目錄 volume 拉出來讓 Caddy 讀到。
遇到 /app/static/twemoji 空目錄的問題(編輯界面引用的圖示出不來), 查原始碼應該是 task.py 中一段下載 twemoji 倉儲檔案的部分沒執行,卻又完全找不到解決點, 最後⋯⋯只好暴力的在 mac 下載、scp 送上主機,暫時能用。
- 在已安裝好 docker 與 docker compose plugin 的 Ubuntu 22.04 LTS 主機上安裝 Misskey。
- 在家目錄新建 misskey 目錄。
- 建立 docker-compose.yml 檔案,這裡使用 Caddy 2 Server 在前端服務、反向代理。
- 建立 Caddyfile。
- 建立 config/ 目錄,並新增 default.yml 與 docker.env 兩個檔案,修改網域名稱、資料庫密碼等。
- 接著輸入
docker compose run --rm misskey yarn run init讓 Misskey 容器建立資料庫。 - docker compose up -d 啟動。
- 稍等一下,前往 https://yourdomain.com 即可看到 Misskey,註冊第一名管理員用戶。
| { | |
| your@email.com | |
| } | |
| www.site1.com { | |
| redir https://site1.com{uri} | |
| } | |
| site1.com { | |
| root * /usr/share/caddy/wordpress-site1 |
由 Linode 後台介面新增主機時,會要求設置 root 密碼,也可以增加 SSH Key、讓 root 能使用 SSH Key 無密碼登入,由於後面會關閉 root 的登入權限,因此選擇不設置金鑰。
ssh root@your_ip以 root 身份登入乾淨的新創主機adduser new_user建立例行登入使用的新用戶,設置密碼與必要資訊adduser new_user sudo將新用戶加入 sudo 群組- 先不要關閉 root 登入的終端機視窗,另開一個新視窗
ssh-copy-id -i ~/.ssh/id_ed25519.pub new_user@your_ip替新用戶增加公鑰ssh new_user@your_ip確認新用戶能以金鑰模式登入無誤
| # dev | |
| SECRET_KEY=4(hf^my1$a*dwf^78^x0zl-z)*)p&)40z#o307o*)p_x2ker^v | |
| DEBUG=True | |
| ALLOWED_HOSTS=.localhost,127.0.0.1 | |
| # for PostgreSQL | |
| # DATABASE_URL=postgres://dba:password@localhost:5432/db | |
| # for Gmail | |
| # EMAIL_BACKEND="django.core.mail.backends.console.EmailBackend" |
/Users/xxx/.nvm/versions/node/v10.15.3/lib
├── @vue/cli@3.8.2
├── @vue/cli-init@3.8.0
├── autoprefixer@9.6.0
├── firebase-tools@4.2.1
├── ghost-cli@1.11.0
├── gulp-cli@2.2.0
├── mjml@4.3.1
├── npm@6.9.0