Chi Yau ☕️

Chi YauChi Yau

App Dev

ShareChiWai

Professional Summary

I’m Chi, a passionate tech enthusiast exploring the latest innovations in GenAI, LLMs, web development, performance tuning, and cybersecurity. As a tech guy at a startup, I aim to share my experiences, insights, and lessons learned in the fast-paced world of technology. Join me on this journey as we dive into the exciting challenges and triumphs of building and scaling tech solutions!

Interests

Performance Tuning Building Tech Innovation
Blog

How to Remove Passphrase on SSH Key

如何在 Raspberry Pi / linux 上移除 SSH key 上的(passphrase)。有兩種方式:

選項一:完全移除密碼片語(安全性較低,但更方便)

SSH 登入你的 Pi 後執行:

ssh-keygen -p -f ~/.ssh/id_ed25519

(如果你的金鑰檔名不同,請替換 id_ed25519 — 可以用 ls ~/.ssh 查看)

系統會詢問:

  1. 舊密碼片語(輸入你目前的密碼)
  2. 新密碼片語(留空,直接按 Enter
  3. 確認新密碼片語(再按一次 Enter

選項二:使用 ssh-agent(更安全 — 密碼片語快取在記憶體中)

在你的 Pi 的 ~/.bashrc~/.profile 中加入:

VSCode Fix ESLint Issue on Save

在日常開發中,我們經常需要使用 ESLint 來保持代碼質量和一致性。每次手動修復 ESLint 問題會很麻煩,但我們可以配置 VSCode 在保存文件時自動修復 ESLint 問題。

配置 VSCode 自動修復 ESLint 問題

1. 安裝 ESLint 擴展

首先,確保你已經安裝了 ESLint 擴展

2. 配置 settings.json

打開 VSCode 的設定檔案(settings.json),添加以下配置:

{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  },
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "vue",
    "svelte"
  ],
  "eslint.format.enable": true
}

3. 配置說明

  • editor.codeActionsOnSave: 當保存文件時,VSCode 會自動執行指定的 code actions。source.fixAll.eslint 會讓 ESLint 自動修復所有可修復的問題。

Useful link for AliCloud - 阿里雲有用的連結

唔知大家有無覺得,唔同嘅 Cloud Provider 嘅 Portal 都有啲亂同慢。對新手嚟講真係好難搵到想要嘅功能同資料。

所以我就整理咗一啲有用嘅連結同資源,希望可以幫到大家更快上手同解決問題。

連結會不斷更新,如果你有任何好用嘅資源都歡迎分享俾我,我會加落去。

Model Studio


Hope you find it useful!

OpenClaw Failed to start CLI: Error: Unknown command: openclaw restart

Encountered an error when trying to restart OpenClaw:

Failed to start CLI: Error: Unknown command: openclaw restart. No built-in command or plugin CLI metadata owns "restart".
    at runCli (file:///home/admin/.npm-global/lib/node_modules/openclaw/dist/cli/run-main.js:310:29)
    at async runMainOrRootHelp (file:///home/admin/.npm-global/lib/node_modules/openclaw/dist/entry.js:468:3)
    at async file:///home/admin/.npm-global/lib/node_modules/openclaw/dist/entry.js:438:55

Issue

The openclaw restart command is not a valid built-in command in OpenClaw. The CLI does not recognize “restart” as an available operation.

Openclaw 常用既command

Openclaw 係一個好用嘅工具,以下係我平時常用嘅 commands,方便大家參考:

Basic Commands

# 查看版本
openclaw --version

# 查看幫助
openclaw --help

Common Operations

# 去設定 openclaw
openclaw onboard

# restart gateway
openclaw restart gateway

Edit configuration: