Skip to content

Instantly share code, notes, and snippets.

@ttttmr
ttttmr / models.md
Last active November 23, 2026 11:46

模型偏好

选择与协作

  • 按任务选型:根据任务类型,难易程度,选择合适模型和thinking
  • 实现与审查互补:使用不同系列的模型做review工作
  • 专家意见(oracle):遇到问题可以咨询专家意见,用最强模型,专家只给判断和建议,不直接动手
  • 升级与兜底:遇阻时升同系列高档位模型,故障或限额在同档位不同系列切换

模型和偏好

@Ssenseii
Ssenseii / download_spotify_music.py
Created August 7, 2025 23:09
Download your spotify tracks using your spotify data and python (requires python, ffmpeg, ytd-lp)
import json
import subprocess
import time
import os
import math
# ===== CONFIG =====
JSON_FILE = "tracks.json"
OUTPUT_DIR = "music"
AUDIO_FORMAT = "mp3"
@rajkosto
rajkosto / odi_keygen.py
Created November 18, 2022 12:56
ODI SFP XPON stick MAC_KEY generator
#!/usr/bin/env python3
#ODI DFP-34X-2C2 MAC_KEY key generator by rajkosto
import sys
import string
import hashlib
args = sys.argv
if len(args) != 2:
sys.exit("Usage: odi_keygen.py YOURMACADDR")

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@mindplay-dk
mindplay-dk / README.md
Last active November 23, 2026 11:39
Blank slate CSS reset for 2026

Blank Slate CSS Reset for 2026

🔗 Demo Page

I pieced this together from various articles, forum posts, and published CSS resets.

The goal is to have a full reset that works for most, modern, evergreen browsers.

A few rules could be considered "normalization" - but I'm trying for as much of a clean slate as possible, with the only exceptions being things like <strong> being bold, <em> being italics, and <a> tags having an underline; for accessibility reasons, these are not things we should reset by default.

@zek
zek / turkiye-origin-iptv.m3u
Created July 19, 2026 18:49
Turkiye origin IPTV — iptv-org/iptv tr.m3u filtered (TRT/DAION/ercdn/mncdn, 56 ch)
#EXTM3U
#EXTINF:-1 tvg-id="24TV.tr@SD" tvg-logo="https://i.imgur.com/8FO41es.png" http-user-agent="Mozilla/5.0 Macintosh; Intel Mac OS X 10_14_5 AppleWebKit/537.36 KHTML, like Gecko Chrome/76.0.3809.25 Safari/537.36" group-title="News",24 TV (1080p)
#EXTVLCOPT:http-user-agent=Mozilla/5.0 Macintosh; Intel Mac OS X 10_14_5 AppleWebKit/537.36 KHTML, like Gecko Chrome/76.0.3809.25 Safari/537.36
https://mn-nl.mncdn.com/kanal24/smil:kanal24.smil/playlist.m3u8
#EXTINF:-1 tvg-id="360.tr@SD" tvg-logo="https://i.imgur.com/agn47sQ.png" group-title="News",360 TV (720p) [Not 24/7]
https://turkmedya-live.ercdn.net/tv360/tv360.m3u8
#EXTINF:-1 tvg-id="A2TV.tr@SD" tvg-logo="https://iatv.tmgrup.com.tr/site/v2/a2tv/i/a2tv-logo.png" group-title="General",A2TV (1080p)
https://rnttwmjcin.turknet.ercdn.net/lcpmvefbyo/a2tv/a2tv.m3u8
#EXTINF:-1 tvg-id="AHaber.tr@SD" tvg-logo="https://upload.wikimedia.org/wikipedia/commons/7/7c/Ahaber_Logo.png" group-title="News",A Haber (1080p)
https://rnttwmjcin.turknet.ercdn.net/lcpmvefbyo/ahaber/a
@lghupan
lghupan / SKILL.md
Created March 25, 2026 07:45
Claude Code /audit skill — structured session & daily activity audit with risk classification
name audit
description Generate a structured audit of Claude Code activity --tool invocations, bash commands, MCP calls, file operations, and security-relevant findings. Use when the user asks to audit a session, review what Claude did, check for risky commands, or get a daily activity summary.
license Complete terms in LICENSE.txt

Session Audit

Generate a comprehensive audit of Claude Code activity with security-relevant findings flagged.

@arutkayb
arutkayb / README.md
Created June 23, 2026 06:41
Workaround for Claude Code API Error: Unable to connect to API (ECONNRESET)

claude-upload-limit-workaround

Fix for Claude Code (and any large HTTPS upload) failing with API Error: Unable to connect to API (ECONNRESET) on a specific home network.

Symptom

  • Short Claude requests always work; long sessions reset after ~5–13 min.
  • Works fine on a phone hotspot, fails on home Wi-Fi.
  • Debug log shows the same request retried 11 times, each dying at a
@VictorTaelin
VictorTaelin / truly_optimal_evaluation_with_unordered_superpositions.md
Last active November 23, 2026 11:34
Truly Optimal Evaluation with Unordered Superpositions

Truly Optimal Evaluation with Unordered Superpositions

In this post, I'll address two subjects:

  1. How to solve HVM's quadratic slowdown compared to GHC in some cases

  2. Why that is relevant to logic programming, unification, and program search

Optimal Evaluators aren't Optimal

Quick Tips for Fast Code on the JVM

I was talking to a coworker recently about general techniques that almost always form the core of any effort to write very fast, down-to-the-metal hot path code on the JVM, and they pointed out that there really isn't a particularly good place to go for this information. It occurred to me that, really, I had more or less picked up all of it by word of mouth and experience, and there just aren't any good reference sources on the topic. So… here's my word of mouth.

This is by no means a comprehensive gist. It's also important to understand that the techniques that I outline in here are not 100% absolute either. Performance on the JVM is an incredibly complicated subject, and while there are rules that almost always hold true, the "almost" remains very salient. Also, for many or even most applications, there will be other techniques that I'm not mentioning which will have a greater impact. JMH, Java Flight Recorder, and a good profiler are your very best friend! Mea