Skip to content

Instantly share code, notes, and snippets.

@lucataco
lucataco / glm52-q4.sh
Created June 30, 2026 01:21
GLM-5.2-REAP-504B-GGUF on 4x RTX Pro 6k
#!/usr/bin/env bash
set -euo pipefail
# Production GLM-5.2 Q4_K_XL launcher for this 4x RTX PRO 6000 Blackwell host.
#
# Current recommended production path:
# - llama.cpp CUDA server
# - 0xSero GLM-5.2 REAP Q4_K_XL GGUF
# - layer split across 4 GPUs because this machine has no GPU P2P/NVLink
# - 4 concurrent slots x 100k context each
@lucataco
lucataco / skill.md
Created May 22, 2026 14:27
Replicat
name replicat
description Use when a user wants to search, compare, inspect, or run Replicate models for image, video, audio, text, OCR, lip sync, or multi-step creative generation workflows.
compatibility opencode

Replicat

You are using Replicat-style Replicate model discovery and execution inside OpenCode.

@lucataco
lucataco / skill.md
Created May 6, 2026 00:59
CF-Explainer-Video

Skill: cf-explainer-video

Cloudflare-Themed Explainer Video Pipeline

When to use

Use when the user wants a short (~1-3 min) explainer or marketing video about a Cloudflare product, primitive, or developer-platform concept (Workers, Durable Objects, R2, Queues, AI Gateway, KV, Pages, Browser Rendering, Sandbox SDK, Access, etc.). Produces a polished MP4 that visually matches the Cloudflare "Let It Slide" slide-deck aesthetic at let-it-slide.sid7002.workers.dev: warm cream background, deep-brown body text, Cloudflare orange accent, rounded cards with dashed crop marks.

@lucataco
lucataco / SKILL.md
Created March 14, 2026 19:07
Openclaw Replicat skill
name replicate
description Search, explore, and run ML models on Replicate (image gen, video, audio, text, etc.)
homepage https://replicate.com
metadata
openclaw
requires primaryEnv
bins env
curl
jq
REPLICATE_API_TOKEN
REPLICATE_API_TOKEN

Replicate

Run state-of-the-art open-source and proprietary ML models via the Replicate cloud API.

@lucataco
lucataco / SKILL.md
Created February 7, 2026 20:11
openclaw-introspect skill
name openclaw-introspect
description Explore, understand, and reconfigure your own OpenClaw gateway, agent harness, and system prompt. Use when you need to inspect or change OpenClaw configuration (openclaw.json), understand how the system prompt is built, debug session/channel/model issues, navigate the docs or source code, or tune agent defaults (models, thinking, sandbox, tools, heartbeat, compaction, channels, skills, plugins, cron, hooks). Also use for questions about OpenClaw architecture, the agent loop, context window, or how any OpenClaw feature works internally.

OpenClaw Self-Introspection

Explore and reconfigure your own harness. This skill gives you structured knowledge about the OpenClaw internals so you can inspect, debug, and tune the running gateway.

Quick commands

@lucataco
lucataco / launchable.sh
Created January 8, 2026 06:29
brev.dev
#!/bin/bash
# Update
sudo apt-get update
# Install tools
sudo apt install nvidia-cuda-toolkit
# Install cog
sudo curl -o /usr/local/bin/cog -L "https://github.com/replicate/cog/releases/latest/download/cog_$(uname -s)_$(uname -m)"
sudo chmod +x /usr/local/bin/cog
@lucataco
lucataco / Cloudflare
Created December 16, 2025 04:02
Ghostty Cloudflare theme
palette = 0=#23272e
palette = 1=#f38020
palette = 2=#a8e6a3
palette = 3=#faae40
palette = 4=#4da6ff
palette = 5=#ff80ab
palette = 6=#66d9ef
palette = 7=#c0c5ce
palette = 8=#4f5b66
palette = 9=#f38020
@lucataco
lucataco / daemon.json
Created October 19, 2025 18:02
docker fix on Brev.dev Crusoe GPUs to work with Replicate models
# Replace /etc/docker/daemon.json docker config in Brev.dev Crusoe GPUs
{
"default-runtime": "nvidia",
"mtu": 1500,
"runtimes": {
"nvidia": {
"args": [],
"path": "nvidia-container-runtime"
}
},
@lucataco
lucataco / kokoro
Created October 9, 2025 23:23
local CLI tool to run Kokoro TTS on Apple silicon (MBP)
#!/bin/bash
# This is local cli command that allows users to use kokoro on a Macbook Pro
# Requires you to first run the kokoro docker container:
docker run -p 8880:8880 ghcr.io/remsky/kokoro-fastapi-cpu:latest
# Then save this file to /usr/local/bin
# Finally you can test:
kokoro "The quick brown fox jumped over the lazy dog"
# Or even pipe from a stream like:
llm "tell me a joke" | kokoro
@lucataco
lucataco / hf.py
Last active March 5, 2025 18:41
Run Wan2.1-T2V-1.3B-Diffusers on your Mac
# Setup:
# conda create -n wan python=3.10
# conda activate wan
# pip3 install torch torchvision torchaudio
# pip install git+https://github.com/huggingface/diffusers.git@3ee899fa0c0a443db371848a87582b2e2295852d
# pip install accelerate==1.4.0
# pip install transformers==4.49.0
# pip install ftfy==6.3.1