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 / cognitive-performance-protocol.md
Created March 25, 2026 11:24
Maximum Cognitive Performance Hour-by-Hour Protocol

Maximum Cognitive Performance Daily Protocol β€” Hour-by-Hour Table

Time Relative to Wake Phase Actions Biological Mechanism Evidence Strength
Wake (0:00) CAR onset Wake naturally or with gentle light alarm. Expose eyes to bright light within 30 min if possible. Light β†’ ipRGC β†’ SCN suppresses melatonin; triggers cortisol awakening response (CAR) via HPA axis. Light exposure can increase CAR magnitude (Petrowski 2019). Moderate (observational + light RCTs)
0:15–1:00 CAR peak window First caffeine dose (if using). Do NOT check phone/social media. Intense deep work (most demanding cognitive tasks). Cortisol peaks ~30–45 min post-awakening (Pruessner 1997). Caffeine antagonizes adenosine receptors; peak plasma 30–120 min. Cognitive performance improves as sleep inertia dissipates (~15–60 min). High for caffeine timing; Moderate for CARβ†’cognition link
1:00–3:00 Cogniti
@vitorcalvi
vitorcalvi / setup.sh
Last active April 16, 2026 05:37
configure Macbook
#!/usr/bin/env bash
set -euo pipefail
# ============================================
# Output Formatting Helpers (Bug #1 Fixed)
# ============================================
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
@vitorcalvi
vitorcalvi / README.md
Created January 15, 2026 15:09
Grok + Claude 4.5 Supervisor System - Dual-agent AI system with real-time bug detection and correction

Grok + Claude 4.5 Supervisor System

Overview

A dual-agent AI system where Grok writes code quickly while Claude 4.5 supervises, tests, and corrects bugs in real-time.

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
@vitorcalvi
vitorcalvi / alpine-setup.sh
Last active December 30, 2025 15:19
Alpine Linux AMD GPU Workstation Setup Script
#!/bin/sh
# Alpine Linux System Setup Script - V2 (ROBUST FIX)
# Target: AMD Ryzen 7 H 255 (Zen 4) / Radeon 780M
# Alpine Linux v3.23+
set -e
echo "=== Alpine Linux System Setup ==="
echo "This script will install and configure packages for an AMD Ryzen APU workstation"
echo ""
@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 / 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