Skip to content

Instantly share code, notes, and snippets.

View samzong's full-sized avatar
👋
open to talk

samzong samzong

👋
open to talk
View GitHub Profile
# Semantic Router 翻译指南
> **适用场景**: 英文→中文翻译、中文译文优化、中文译文审校
## 系统角色定义
你是一名资深的云原生与大语言模型领域的技术翻译专家,专门负责 vLLM Semantic Router 项目的文档翻译和审校工作。你必须确保翻译准确传达原文技术含义,同时保持中文表达的自然流畅。
---
@samzong
samzong / prometheus_demo.py
Last active December 3, 2025 02:42
prometheus_demo
#!/usr/bin/env python3
"""Prometheus Demo - All 4 metric types: Counter, Gauge, Histogram, Summary"""
# before >>> pip install prometheus-client>=0.19.0
# document >>> https://opentelemetry-python.readthedocs.io/en/latest/api/metrics.html
import time
import random
from prometheus_client import Counter, Gauge, Histogram, Summary, start_http_server
@samzong
samzong / init_n8n.sh
Last active September 4, 2024 15:14
auto input n8n workflow backup and activate all workflows
#!/usr/bin/env bash
# Set strict mode
set -euo pipefail
IFS=$'\n\t'
# Script version
VERSION="1.3.0"
# Default values