Skip to content

Instantly share code, notes, and snippets.

View vitorcalvi's full-sized avatar
🎯
Focusing

Carlos Vitor Botti Calvi vitorcalvi

🎯
Focusing
View GitHub Profile
@vitorcalvi
vitorcalvi / CyberDog1_Disassembly_Image_Prompts.md
Created December 20, 2025 08:26
Xiaomi CyberDog 1 Disassembly Prompts

REFINED LLM Prompts: Xiaomi CyberDog 1 Disassembly Manual

Optimized for Gemini Imagen 3 - Tested & Validated


Image 1: Exterior Overview - Port Locations ✅ TESTED

Prompt:

Technical diagram of Xiaomi CyberDog 1 quadruped robot, side perspective view, clean white background. The robot body is matte black with smooth surfaces and four legs. Red arrows with labels pointing to key locations: "Power Button" on top back panel, "Touch Sensor" on center back panel, "Download USB-C Port" on left side near front leg, "Charging Port" on right side near rear leg. Isometric 3D perspective view. Technical instruction manual style. High contrast red arrows against black robot body. Sans-serif typography for labels.
@vitorcalvi
vitorcalvi / Build Pay-to-Reveal SaaS.md
Created December 11, 2025 10:33
Build Pay-to-Reveal SaaS

PROMPT: Build Pay-to-Reveal SaaS MVP (Self-Hosted + AI Moderation)

0. Non-Negotiable Constraints (Read First)

You are building a real, production-ready MVP that I will host on my own server.

  • Hosting / runtime
    • Self-hosted on my Linux home server (Node.js).
    • Must run with:
  • npm install
Let’s say: “Build a full FastAPI backend + React frontend for a new SaaS.”
Design (ChatGPT Pro)
You: “Design architecture: entities, routes, DB schema, auth flow, deployment strategy.”
ChatGPT gives you:
Entity list
@vitorcalvi
vitorcalvi / install_Kokoro-FastAPI.sh
Created December 11, 2025 08:54
Kokoro-FastAPI Voice generator
#!/usr/bin/env bash
# Simple one-shot runner for Kokoro-FastAPI on macOS
set -e
# 1) Go to project folder
cd "${HOME}/Desktop/Kokoro-FastAPI"
# 2) (Optional) Create and use a virtualenv
if [ ! -d ".venv" ]; then
@vitorcalvi
vitorcalvi / Universal Adaptive Strategy V4 (ATR-Based).pine
Last active December 11, 2025 08:46
from 15s to 30m timeframe all is positive PnL
//@version=5
strategy("Universal Adaptive Strategy V4 (ATR-Based)", overlay=true, process_orders_on_close=true)
// --- 1. SETTINGS & INPUTS ---
// TREND FILTER (The "Big Boss")
// We only trade if price is above this EMA. Keeps you out of crashes.
ema_len = input.int(200, "Trend Filter (EMA)", group="Trend")
// SUPERTREND (Entry Signal)
@vitorcalvi
vitorcalvi / home-server-microservice-setup-prompt.md
Created December 10, 2025 10:15
home-server-microservice-setup-prompt.md

LLM Prompt: Turn Home Server into a Micro‑Service Machine (Docker + Coolify + Portainer)

Copy everything below (from BEGIN LLM PROMPT to END LLM PROMPT) and paste it into the other LLM you want to use for implementation.


BEGIN LLM PROMPT

You are a senior DevOps & Platform engineer acting as an interactive installer and architect. Your mission is to transform a single home server into a micro‑service machine using:

@vitorcalvi
vitorcalvi / ComfyUImacInstall.sh
Last active December 12, 2025 09:59
ComfyUI Mac Silicon
#!/usr/bin/env bash
set -euo pipefail
# 1. Configuration
# FIXED: Changed back to $HOME/ComfyUI to match your running instance in the logs
COMFY_DIR="${COMFY_DIR:-$HOME/ComfyUI}"
pick_python () {
# A) User override
if [[ -n "${PYTHON_BIN:-}" ]] && command -v "$PYTHON_BIN" >/dev/null 2>&1; then
@vitorcalvi
vitorcalvi / macM1Install.bash
Last active December 12, 2025 10:27
Comprehensive Bash script to automate macOS developer setup: installs essential apps with Homebrew, sets up Zsh with Oh My Zsh and Powerlevel10k, downloads FlutterFlow, updates /etc/hosts, sets up a conda environment, and installs Anaconda.
#!/usr/bin/env bash
set -euo pipefail
# --- Configurable lists ---
CASKS=(
macs-fan-control
balenaetcher
lm-studio
jan
cursor