Skip to content

Instantly share code, notes, and snippets.

View tedmax100's full-sized avatar
🐶
時間花在哪,成就就在那

Nathan.Lu tedmax100

🐶
時間花在哪,成就就在那
View GitHub Profile
@tedmax100
tedmax100 / review-pr.md
Created February 20, 2026 16:19
GitHub PR review skill
description allowed-tools argument-hint
執行完整的 GitHub Pull Request code review,包含取得 PR 資訊、切換到 merge result、分析程式碼、發佈批次 review comments。
Bash(gh *), Bash(git *), Read, Glob, Grep, Task, TaskCreate, TaskUpdate, TaskList, AskUserQuestion
<PR 編號>

當前環境(系統預載)

  • 當前分支:!git branch --show-current
  • 工作區狀態:!git status --short
@tedmax100
tedmax100 / claude-code.json
Created February 19, 2026 09:41
claude-code grafana dashboard
{
"schemaVersion": 39,
"title": "Claude Code",
"uid": "claude-code",
"version": 11,
"tags": [
"claude-code",
"ai",
"telemetry"
],
@tedmax100
tedmax100 / check_available_instruments.py
Created February 3, 2026 07:24
python_otel_zero_code_instrument_list_simulate
"""檢查當前環境中可用的 OpenTelemetry instrumentation - 模擬 opentelemetry-bootstrap"""
import re
import importlib.metadata
from opentelemetry.instrumentation.bootstrap_gen import libraries
def get_installed_packages():
"""獲取所有已安裝的套件及其版本"""
packages = {}
for dist in importlib.metadata.distributions():
try:
@tedmax100
tedmax100 / get_instruments.py
Last active February 3, 2026 07:12
get_instruments.py
"""獲取並顯示 OpenTelemetry 自動埋點插件清單"""
import json
import sys
from typing import List, Dict, Any
def get_instrumentation_libraries(limit: int = None) -> List[Dict[str, Any]]:
"""
獲取 OpenTelemetry 自動埋點插件清單
Args:
@tedmax100
tedmax100 / identity_demo_test.go
Last active February 3, 2026 07:18
identity_demo_test.go
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
// 檔案位置: processor/deltatocumulativeprocessor/internal/identity_demo_test.go
package internal
import (
"testing"
"github.com/stretchr/testify/assert"
@tedmax100
tedmax100 / docker-compose.yaml
Created January 21, 2026 15:52
deltatocumulative
services:
# OTel Collector Contrib (核心角色)
otel-collector:
image: otel/opentelemetry-collector-contrib:0.142.0
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-config.yaml:/etc/otel-collector-config.yaml:ro
ports:
- "4317:4317"
- "8888:8888"
package main
import (
"fmt"
"io"
"log"
"net/http"
)
// Greet sends a personalised greeting to writer.