Skip to content

Instantly share code, notes, and snippets.

@raybird
raybird / todo.md
Created June 24, 2025 02:36
通用問題處理工作流程

通用問題處理工作流程

概述

透過 Windsurf 整合 Sequential-Thinking(問題分解與推理)和 Serena(語義檢索與內容生成),處理用戶輸入的 prompt,生成結構化結果。

配置

  • Windsurf:啟用 MCP 功能。
  • MCP 伺服器
    • Serena:ide-assistant 上下文,負責內容生成。
    • Sequential-Thinking:負責結構化推理。
@raybird
raybird / analyze_project.md
Last active June 15, 2025 13:54
[prompt] 分析專案的內容與功能

幫我分析專案的內容與功能,並整理成類似 README.md 的文件,包含專案概述、功能清單、技術棧、架構概述、安裝與執行步驟,以及開發注意事項。以下是專案的相關資訊:

  • 專案檔案結構
  • 程式碼語言與框架
  • 已知功能或目的
  • 其他資訊

請以清晰、簡潔的方式整理,並突出對後續開發有幫助的關鍵資訊

@raybird
raybird / tunnel.sh
Created February 25, 2025 02:48
cloudflare/cloudflared
#!/bin/bash
# Check if a port number is provided
if [ -z "$1" ]; then
echo "Please provide a port number. Usage: ./tunnel.sh <port>"
exit 1
fi
# Get the port number
PORT=$1
#!/usr/bin/env bash
# 定義 hello 函數
hello() {
# 輸出 "hello"
echo "hello"
}
# 定義 hello2 函數
hello2() {
@raybird
raybird / bash
Last active October 21, 2022 03:15
ubuntu export pem from cli
#!/usr/bin/env bash
set -e
cd $(
cd $(dirname $0)
pwd -P
)
[ -f .env ] && export $(cat .env | xargs) || echo "there is no .env, skip"
function usage() {
cat <<EOS
@raybird
raybird / terminal customize
Created December 15, 2019 03:26
add git branch on bash-prompt
## INCLUDE CUSTOM `.bashrc` CODE
##
#if [ -f ~/.bashrc_custom ]; then
# . ~/.bashrc_custom
#fi
# THIS FILE IS A USER-CUSTOM BASHRC FILE TO KEEP CLEAN THE DEFAULT ~/.barshrc FILE.
# PUT THERE ANY CUSTOM CODE MANUALLY ADDED BY YOU
# Show git branch name
force_color_prompt=yes
@raybird
raybird / makefile
Created December 14, 2019 12:28
makefile sample
TAG=$(shell git describe --tags --abbrev=0 | sed -Ee 's/^v|-.*//')
COMMIT=$(shell git rev-list -1 HEAD)
DATE=$(shell date '+%Y-%m-%d %H:%M:%S')
# HELP
# This will output the help for each task
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
.PHONY: help
help: ## This help.
sudo add-apt-repository ppa:fcitx-team/nightly
sudo apt-get update
sudo apt-get install fcitx-chewing
reboot
@raybird
raybird / Dockerfile
Last active August 29, 2015 14:14 — forked from benschw/Dockerfile
FROM ubuntu
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -s /bin/true /sbin/initctl
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get -y install mysql-client mysql-server