Skip to content

Instantly share code, notes, and snippets.

@huytd
huytd / analysis.md
Created March 4, 2026 05:13
Qwen3.5-35B-A3B Q4_K_M Session log and token analysis

Qwen3.5-35B-A3B Inference Session Report

Model: Qwen3.5-35B-A3B-UD-Q4_K_M
Backend: llama.cpp (build 8171, c17dce4f5)
Hardware: NVIDIA GeForce RTX 5060 Ti (16 GB VRAM)
Server: llama-server on http://127.0.0.1:8080
Date: March 3, 2026


1. System Configuration

@huytd
huytd / claude-code.session.txt
Last active February 24, 2026 20:41
Qwen3.5-35B-A3B Claude Code Test
❯ let's implement the plan in @docs/plans/
⎿  Listed directory docs/plans/
∴ Thinking…
User wants to implement a plan from docs/plans, so I should invoke the brainstorming skill first per the superpowers protocol to explore
requirements before implementation.
⏺ Skill(superpowers:brainstorming)
⎿  Successfully loaded skill
@huytd
huytd / markdown.sh
Created February 23, 2026 18:25
Markdown render using Bash script
#!/usr/bin/env bash
# Usage: ./mdview filename.md OR cat file.md | ./mdview
# --- Configuration ---
MAX_CELL_WIDTH=${MAX_CELL_WIDTH:-50}
# --- ANSI Colors ---
ESC=$'\033'
RESET="${ESC}[0m"
BOLD="${ESC}[1m"
@huytd
huytd / README.md
Last active February 7, 2026 08:11
Running Qwen3-Coder-Next (Q3_K_M) on 16 GB RTX 5060 Ti
@huytd
huytd / 01-README.md
Created September 11, 2025 20:47
Condensed Font Creator

A fontforge script to resize every glyph of a font and save as a new condensed version.

Usage

fontforge -script narrow.py In.ttf Out.ttf sx blend "Family" "Style" [tracking]

Examples:

#!/bin/bash
screencapture -i ~/clipboard.png
IMAGE_BASE64=$(base64 -i ~/clipboard.png | tr -d '\n')
rm ~/clipboard.png
API_KEY="GEMINI_API_KEY_HERE"
MODEL="gemini-2.0-flash"
import { OpenAI } from "https://deno.land/x/openai@v4.68.1/mod.ts";
import { WebClient } from "npm:@slack/web-api";
export function parsePermalink(url: string) {
const u = new URL(url);
const [ , , channel, raw ] = u.pathname.split("/");
const ts = raw.startsWith("p")
? raw.slice(1).replace(/(\d{10})(\d{6})/, "$1.$2")
: raw;
return { channel, ts, maybeThread: u.searchParams.get("thread_ts") ?? undefined };
/* ─── floating navbar, hidden by default ─── */
#nav-bar {
opacity: 0;
pointer-events: none;
position: fixed !important;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 600px;
background: rgba(255,255,255,.95);
@huytd
huytd / raycast-bookmark-command.py
Created October 21, 2024 06:04
Use Gemini to generate bookmark, use in Raycast
#!/usr/bin/env python3
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Add a new bookmark in Obsidian
# @raycast.mode silent
# Optional parameters:
# @raycast.icon 🔖
# @raycast.argument1 { "type": "text", "placeholder": "URL" }