Skip to content

Instantly share code, notes, and snippets.

@changtimwu
changtimwu / code-review-tutorial-zh.md
Created June 21, 2026 04:54
Code Review Tutorial (中文)

在單人 GitHub 工作流程中使用 /code-review

一份簡單的教學,教你用 Claude Code 的 /code-review 指令抓出程式錯誤——即使整個專案只有你一個人開發。核心概念:永遠不要直接合併到 main。一律先開分支、發 pull request,並讓 /code-review 在合併前當你的第二雙眼睛。

它能做什麼

/code-review 會在任何 Claude Code 工作階段中執行,直接在終端機裡審查你的 diff。它會找出正確性的錯誤,也會提出重用、簡化與效能上的清理建議。不需要安裝 GitHub App,也不需要付費方案——在單人 repo 上開箱即用。

預設情況下,它會審查你目前分支領先 upstream 的所有 commit,加上工作目錄中尚未 commit 的變更。

@changtimwu
changtimwu / code-review-tutorial.md
Created June 21, 2026 04:54
Code Review Tutorial

Using /code-review in a Solo GitHub Workflow

A quick guide to catching bugs with Claude Code's /code-review command — even when you're the only developer. The idea: never merge straight to main. Always go through a branch and a pull request, and let /code-review be your second pair of eyes before you do.

What it does

/code-review runs inside any Claude Code session and reviews a diff right in your terminal. It looks for correctness bugs, plus reuse, simplification, and efficiency cleanups. No GitHub App or paid plan required — it works on solo repos out of the box.

By default it reviews your branch's commits ahead of its upstream, plus any uncommitted changes in your working tree.

@changtimwu
changtimwu / orin-nano-issues.md
Created March 24, 2026 09:53
NemoClaw / OpenShell: Jetson Orin Nano known issues and official NV workaround guide

NemoClaw / OpenShell Issues: Jetson Orin Nano Platform

Tracked issues relevant to the Jetson Orin Nano (and related AGX Thor/Orin) platform. All issues are currently OPEN.


NemoClaw #404 — GPU detection fails + k3s panics on iptables (Orin Nano Specific)

Labels: bug, Platform: AGX Thor/Orin

CP 代號 補給地點 相距距離 分段爬升/下降 截跑時間 站點類型 熱食 (Warm Food) 站長精選 (Special Pick)
- 墾丁青年活動中心 0 km 0m ↑ - 0m ↓ Sat 05:45 起點 - -
CP1 墾丁牧場VILLA-2 11.6 km 237m ↑ - 229m ↓ - 水站 - 奶茶 (限夜間)
CP2 潭仔巷舊屋 6.2 km 179m ↑ - 166m ↓ Sat 09:30 補給站、水動能 - 青梅汁
CP3 南安宮 6.7 km 326m ↑ - 337m ↓ Sat 12:00 補給站 - 香腸、雞捲
CP4 門馬羅草原登山口 9.1 km 283m ↑ - 251m ↓ Sat 14:00 補給站 - 餐包、黑糖仙草
CP5 玉泉寺 13.5 km 600m ↑ - 488m ↓ Sat 18:00 補給站 - 紅豆餅、檸檬愛玉
CP6 58 號下民宿 10.9 km 389m ↑ - 499m ↓ Sat 21:30 熱食站 皮蛋瘦肉粥、滷肉飯、肉粽 綠豆冰沙
CP7 門馬羅溪皮屋 11.6 km 484m ↑ - 470m ↓ Sun 01:15 補給站 - 手工水餃、黑糖仙草
CP8 雙馬羅露營莊園 7.1 km 163m ↑ - 188m ↓ Sun 03:30 熱食站、水動能 炸醬拌麵、關東煮、水餃 紅豆刨冰、咖啡/奶茶
@changtimwu
changtimwu / claude-code-tips.md
Created January 3, 2026 15:28
Boris's claude code tips

13 Pro Tips for Using Claude Code Effectively

Insights from Boris Cherny, Creator of Claude Code

Introduction

Claude Code is designed to be flexible and customizable, allowing each developer to use it in ways that best suit their workflow. While the tool works great out of the box, these practical tips from the creator himself can help you maximize your productivity with Claude Code.

1. Run Multiple Claude Instances in Parallel

@changtimwu
changtimwu / frigate_code.md
Created January 17, 2024 02:16
frigate source code

go2rtc

work with go2rtc by API

  • in the Dockerfile, go2rtc is integrated in the form of executable instead of package/library

frontend

  • It's based on preact. No typescript.
  • No widget libs like MUI is used. They implemented their own.
@changtimwu
changtimwu / cksnotes.md
Last active December 28, 2022 22:23
personal CKS notes

external tools

  • CIS benchmark:
    • check inproper configs of a k8s node
    • kube-bench run --targets=master
  • Falco: fields
    • monitor container activities
    • crictl: container id -> pod id -> pod name -> deploy name
    • write to falco_rules.local.yaml
    • memorize the following techniques
@changtimwu
changtimwu / synoplayer.js
Created December 5, 2022 07:18
some video player
Ext.namespace("SYNO.SS.App.WebPlayer");
Ext.define("SYNO.SS.App.WebPlayer.VideoAnalayitcsResultDisplayer", {
extend: "Ext.Container",
SNAPSHOT_WIDTH: 540,
SNAPSHOT_HEIGHT: 345,
SNAPSHOT_SMALL_WIDTH: 88,
SNAPSHOT_SMALL_HEIGHT: 70,
PPL_HINT_BACKGROUND_STYLE: "rgba(0, 0, 0, 0.5)",
BORDER_STYLE: "rgba(0, 109, 188, 0.196)",
LIGHT_BLUE_STYLE: "rgba(0, 255, 255, 1)",

OPENVINO for Windows on IEI DRPC-240

  • 硬體: DRPC-240-TGL-U
  • OS: Windows 10
  • 底下文中的 C:\Users\B622 代表使用者文件夾, 實際上會因使用者名稱會有不同, 在 PowerShell 中, 可以此變數 $env:USERPROFILE 獲得

OpenVINO 2022.2

  • 簡介: OpenVINO是intel開發的高速高性能計算機視覺和深度學習推理應用開發套件, 2022 版本對 Intel 核顯有較好的支援, 可善用核顯作硬體推理裝置.
  • 安裝位置: 照官方建議, 以 python virtualenv 方式安裝, 所以實際位置是在 C:\Users\B622\openvino_env\Libs\site-packages\openvino
  • 啟動方式:
  • 開啟 PowerShell V7, 執行 .\openvino_env\Scripts\activate, 應該會看到命令提示符號如下變化

金錢與財富有什麼不同?金錢不等於財富,金錢只是我們用來衡量財富的工具。錢是一種社會信用,能夠用來借貸他人時間。假如我把自己的工作做得很好,為社會創造了價值,社會說:「太感謝你了。因為你過去做的工作,未來我們要回報你。這裡是一張小借據,就把它叫做『錢』吧。」財富才是你想要的東西,是在你睡覺時,還能替你賺錢的資產。財富是工廠、是機器人,能製造出產品;財富是晚上仍在運轉,並服務顧客的電腦程式;財富是銀行裡的錢,可以被投資到其他資產或其他事業;甚至房子也是一種財富,因為可以出租,但跟擁有公司的一部分比起來,這種使用土地的效率可能比較低。所以,我對財富的定義是在你睡覺時還能增值、替你賺錢的事業或資產。