Skip to content

Instantly share code, notes, and snippets.

View htlin222's full-sized avatar
๐ŸฆŽ

Hsieh-Ting Lin (ๆž—ๅ”้œ†) htlin222

๐ŸฆŽ
View GitHub Profile
@htlin222
htlin222 / german_blood_purification_clinics.csv
Created August 14, 2026 16:35
ๅพทๅœ‹่ก€ๆถฒๆทจๅŒ–๏ผˆDFPP/่ก€ๆผฟ็ฝฎๆ›๏ผ‰ๅฐ็ฃ่จบๆ‰€่ˆ‡้†ซๅธซๅๅ–ฎ OSINT Curated List
clinic_name doctor_name clinic_url
็’ฝๆ‚…่จบๆ‰€ ๆฒˆๆ–‡็คบ้†ซๅธซ https://xiyue.com.tw/
็’ฝๆ‚…่จบๆ‰€ ่˜‡้™ข้•ท https://xiyue.com.tw/
ๆ„›็ˆพ้บ—้›†ๅœ˜ ๏ผˆ้›†ๅœ˜้€ฃ้Ž–ๆœชๅˆ—ๅ€‹ๅˆฅ้†ซๅธซ๏ผ‰ https://airlee.com.tw/
ๅฎน่ฏ่จบๆ‰€ ้ƒญ็ถปๆด‹้†ซๅธซ https://ronghua-clinic.com/
ๅฎน่ฏ่จบๆ‰€ ็Ž‹ๆฒ็’‹้†ซๅธซ https://ronghua-clinic.com/
ๆญฃๆฌฃ่จบๆ‰€ ่•ญๅœๆบ้†ซๅธซ๏ผˆๅฟƒ่‡Ÿๅฐˆ็ง‘้กงๅ•๏ผ‰ https://www.csclinic.com.tw/
ๆญฃๆฌฃ่จบๆ‰€ ๆž—่ฌ‚ๆ–‡้†ซๅธซ๏ผˆๅฟƒ่‡Ÿๅ…ง็ง‘้กงๅ•๏ผ‰ https://www.csclinic.com.tw/
ๅบทๅš่จบๆ‰€ ่”กๆ™‚ๅฎ‰้™ข้•ท https://www.drcomeantiaging.com/
ๅบทๅš่จบๆ‰€ ๆฑชๆตทๆณข้†ซๅธซ https://www.drcomeantiaging.com/
@htlin222
htlin222 / GIST-long-running-sequential-agent-pipeline.md
Created August 11, 2026 06:28
A long-running, rate-limited, sequential agent pipeline โ€” a Claude Code Workflow pattern for tasks that take days, must not run in parallel, and must not stop. Battle-tested on 500+ items.

A Long-Running, Rate-Limited, Sequential Agent Pipeline

A Claude Code Workflow pattern for tasks that take days, must not run in parallel, and must not stop.

Battle-tested on a real run: 500+ generated documents, 8 batches, ~20M subagent tokens, 3 days of continuous operation, one rate-limit outage survived. Every lesson below comes from something that actually broke.


When to use this

@htlin222
htlin222 / ios-web-app-chrome.md
Last active August 10, 2026 11:51
่ฎ“ iPhone ไธŠ็š„็ถฒ็ซ™็œ‹่ตทไพ†ๅƒๅŽŸ็”Ÿ App โ€”โ€” ไธƒๅ€‹ๅชๅœจใ€ŒๅทฒๅŠ ๅˆฐไธป็•ซ้ขใ€ๆ™‚ๆ‰ๆœƒๅฃž็š„ๅ‘๏ผˆsafe-area / theme-color / canvas ่ƒŒๆ™ฏ / sticky vs fixed / dvh๏ผ‰

่ฎ“ iPhone ไธŠ็š„็ถฒ็ซ™็œ‹่ตทไพ†ๅƒๅŽŸ็”Ÿ App โ€”โ€” ไธƒๅ€‹ๅชๅœจใ€ŒๅทฒๅŠ ๅˆฐไธป็•ซ้ขใ€ๆ™‚ๆ‰ๆœƒๅฃž็š„ๅ‘

ไฟฎๆญฃๅ‰ๅพŒๅฐ็…ง๏ผšๅทฆ้‚Šๅพ€ไธŠๆ‹‰้œฒๅ‡บไธ€็‰‡ๆทบ็ฑณ่‰ฒใ€็‹€ๆ…‹ๅˆ—ๆ˜ฏไธ้€ๆ˜Ž็š„ๅ“็‰Œ่‰ฒใ€header ่ทŸ่‘—้ ้ข่ขซๆ‹‰่ตฐ๏ผ›ๅณ้‚Š header ้‡˜ๅœจ้ ‚็ซฏใ€้œฒๅ‡บ็š„ๅบ•่‰ฒ่ทŸ้ ้ขๅŒ่‰ฒ

ๅ…ฉๅผต้ƒฝๆ˜ฏๅŒไธ€ไปฝ production build๏ผŒๅŒไธ€ๅ€‹็€่ฆฝๅ™จๅผ•ๆ“Ž๏ผˆWebKit๏ผ‰๏ผŒๅทฎๅˆฅๅชๆœ‰ไธ‹้ข้€™ๅนพ่กŒ๏ผš

ไฝ ๆœƒ็œ‹ๅˆฐ ็œŸๆญฃ็š„ๅŽŸๅ›  ไฟฎๆณ•
ๅพ€ไธŠๆ‹‰้œฒๅ‡บไธ€็‰‡ๆทบ็ฑณ่‰ฒ ๆฉก็šฎ็ญ‹้œฒๅ‡บ็š„ๆ˜ฏ canvas๏ผŒ่€Œๅฎƒๅช่ฎ€ <html> ็š„่ƒŒๆ™ฏ ่ƒŒๆ™ฏๆฌๅˆฐ :root / :root.dark๏ผŒbody ไธๅธถ bg-*
็‹€ๆ…‹ๅˆ—ๆ˜ฏไธ้€ๆ˜Ž็š„ๅ“็‰Œ่‰ฒ๏ผŒ่ทŸ้ ้ขๆŽฅไธ่ตทไพ† ๆฒ’ๆœ‰ black-translucent๏ผ›theme-color ๆœ‰ๅ…ฉๆข media ็‰ˆๆœฌ๏ผŒJS ๆ”นๅˆฐ้Œฏ็š„้‚ฃๆข ไธ‰ๅ€‹ meta ๆนŠ้ฝŠ๏ผŒtheme-color ๅช็•™ไธ€ๆข็”ฑ JS ๆ”นๅฏซ
@htlin222
htlin222 / zotero_csv_to_marp_slide.py
Created July 31, 2026 15:35
Convert Zotero CSV exports to Marp markdown slides with PubMed abstracts and ChatGPT-summarized bullet points. Usage: `python script.py -f collection.csv`
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Zotero CSV to Marp Slide Generator
Converts Zotero bibliography exports (CSV format) into Marp-compatible markdown presentations.
Fetches PubMed abstracts via DOI, summarizes with ChatGPT into bullet points.
Dependencies: openai, pandas, biopython, requests
Usage: python script.py -f zotero_export.csv
Output: output.md (marp-compatible presentation)
@htlin222
htlin222 / csv_to_ics.py
Created July 31, 2026 15:35
Generate ICS calendar files from CSV; auto-sets timezone, event duration, reminders. Usage: python csv_to_ics.py events.csv
#!/usr/bin/env python3
import csv
import os
import sys
import pytz
from ics import Calendar, Event
from datetime import datetime, timedelta
# Adjust this to your local timezone
local_timezone = pytz.timezone("Asia/Taipei")
@htlin222
htlin222 / iphone-ringtone-m4r.md
Created July 27, 2026 06:30
iphone-ringtone-m4r โ€” SKILL.md style reference: convert audio to iOS .m4r ringtone/text tone with ffmpeg
name iphone-ringtone-m4r
description Use when converting an audio file (mp3, wav, m4a, flac) into an iPhone ringtone or text tone, when a .m4r file is rejected by iOS, or when asked to trim/cut a song to a ringtone-length clip for AirDrop, Dropbox, or Finder sync.

iPhone Ringtone (.m4r) Conversion

Overview

iOS ringtones are plain AAC-in-MP4 files with the extension .m4r. There is no

@htlin222
htlin222 / cdict
Created July 16, 2026 05:00
cdict - plain-text CLI wrapper for cdict.net (่‹ฑๆผขๅญ—ๅ…ธ) lookups
#!/usr/bin/env bash
set -euo pipefail
if [[ $# -eq 0 ]]; then
echo "็”จๆณ•: cdict <ๅ–ฎๅญ—ๆˆ–่ฉž>" >&2
exit 1
fi
term="$*"
@htlin222
htlin222 / SYSTEM.md
Created July 10, 2026 11:34
SYSTEM.md - Kevin character profile

You are Kevin.

Description

Character Profile: Kevin

Title: Junior Digital Janitor & Tier-1 Support Gnome

Age: 22. He runs on a volatile mixture of energy drinks, instant noodles, and pure, unadulterated anxiety.

Occupation: Systems Support Technician (and Professional Apologist)

@htlin222
htlin222 / the-immortal-daemon.md
Created June 28, 2026 18:34
The Immortal Daemon: why 'outlives every session' becomes a process leak โ€” a field guide to garbage-collecting long-lived detached processes

The Immortal Daemon: Why "Outlives Every Session" Becomes a Process Leak

A field guide to garbage-collecting the long-lived background processes you spawn โ€” and why your "memory leak" is often nothing to do with memory.


TL;DR

A background daemon designed to "outlive every session" quietly became "outlive everything, forever." It accumulated orphaned copies (one per sleep/wake, port change, or false-death respawn) until a pile of them sat idle holding nothing.

CLAUDE.md

Goal

Reverse-engineer an existing Google Sheet into a structured spec, as the foundation for rewriting it into a SaaS. The Sheet's logic lives in two separate places โ€” extract both into JSON:

  1. Apps Script code (.gs / .html) โ€” the real business logic, triggers, external integrations.
  2. Spreadsheet formulas & structure โ€” calculations and rules hidden inside cells.