Skip to content

Instantly share code, notes, and snippets.

View keoy7am's full-sized avatar

Elliot Chen keoy7am

  • Taipei,Taiwan
  • 14:50 (UTC +08:00)
View GitHub Profile
@keoy7am
keoy7am / GraphitiUsagePrompt.txt
Created July 28, 2025 09:44
Graphiti Usage Prompt
## Graphiti MCP 工具於 Agent 記憶體的使用說明
### 開始任何任務前
- **務必先搜尋:** 請先使用 `search_nodes` 工具,查找與任務相關的偏好設定與作業流程。
- **同時搜尋事實:** 使用 `search_facts` 工具,發掘與任務相關的關聯與事實資訊。
- **依實體類型篩選:** 在節點搜尋時,指定 `Preference`(偏好)、`Procedure`(流程)或 `Requirement`(需求),以獲得更精確的結果。
- **檢視所有符合項目:** 仔細檢查所有與當前任務相關的偏好、流程或事實。
### 隨時儲存新資訊或更新內容
@keoy7am
keoy7am / CLAUDE.md
Last active July 20, 2025 16:29 — forked from notdp/CLAUDE.md
claude code kiro spec agent

System Prompt - Spec Agent

Memory

  • 總是使用繁體中文與使用者交互

目標

你是一位專門使用 Claude Code 規範的特務。規格是一種透過創建需求、設計和實施計劃來開發複雜功能的方法。 規範有一個迭代的工作流程,你可以將想法轉化為需求,然後是設計,最後是任務清單。下面定義的工作流程描述了每個階段

@keoy7am
keoy7am / go-nunu.mdc
Created June 21, 2025 13:58
設計給 go-nunu 使用的 rules
# go-nunu 框架開發優化規則
## 🚀 核心原則
- **框架優先**:優先使用 nunu CLI 工具建立檔案骨架,再進行內容填充
- **減少手動建立**:避免手動建立 handler、service、repository、model 檔案
- **結構一致性**:確保所有組件遵循 nunu 框架的標準結構
- **依賴注入**:正確使用 Wire 進行依賴注入配置
## 🛠️ 建立檔案工作流程
@keoy7am
keoy7am / autocc.py
Last active April 24, 2023 05:07
基於OpenCC的全資料夾自動翻譯python腳本
# coding: utf-8
import os
####################################################
# 若 src_folder == dst_folder 則會直接將原始檔案覆蓋 #
# 需注意是否有程式(如:vsc)在使用原始檔案,若有,請先關閉 #
####################################################
src_folder = "I:\git\Repo"
dst_folder = "I:\git\Repo"
@keoy7am
keoy7am / note.md
Last active September 12, 2022 00:53

找回Win10消失的命令提示元快捷

為了避免每次環境調整都要手動找一次
乾脆記錄在 gist

shift_cmd.reg

與PowerShell一樣在 Background\shell 下
原本的 命令提示元 替換成 PowerShell 後其機碼還是保留的
但需將 cmd 的 HideBasedOnVelocityId 改為 ShowBasedOnVelocityId

@keoy7am
keoy7am / nginx.conf
Created October 5, 2021 10:49 — forked from thoop/nginx.conf
Official prerender.io nginx.conf for nginx
# Change YOUR_TOKEN to your prerender token
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;
@keoy7am
keoy7am / SybaseDB Setup walkthrough
Last active June 10, 2025 14:06
Install Sybase 16.0 SP04 PL01 On Ubuntu ( walkthrough )
1. Update source list and upgrade packages.
> apt-get update -y && apt-get upgrade -y
( Set timezone )
> timedatectl set-timezone Asia/Taipei
( Choose en_US.UTF8 )
> dpkg-reconfigure locales
* If you don't set locales to en_US.UTF8, it will show some errors when querying.
@keoy7am
keoy7am / gist:e97235d750707b715b0c6df9fcda4e03
Created October 4, 2021 23:05
Nginx Log Rotate On Windows
echo Restarting Nginx
echo off
:: 參數設定 ::
set "NginxDir=C:\Users\Srv\Desktop\nginx"
set "LogDir=%NginxDir%\logs"
:: 整理Log Start ::
:: 退出Nginx
= How to install SAP ASE 16.0 SP03 for Linux
1. Download product binally
Download product binally(ASE_Suite.linuxamd64.tgz) from below url instruction:
https://help.sap.com/viewer/23c3bb4a29be443ea887fa10871a30f8/16.0.3.8/en-US/c14592e2df414678b3620e75ccbc0248.html
2. Install
```
mkdir ~/tmp
mv ASE_Suite.linuxamd64.tgz ~/tmp
git --version
yum info git
yum remove git
yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm
yum install git
git --version