Skip to content

Instantly share code, notes, and snippets.

@Khamel83
Khamel83 / hyperduck_parallel_setup.sh
Created October 7, 2025 18:18
Bulletproof Hyperduck parallel setup - sends URLs to both Downie and Atlas simultaneously
#!/bin/bash
# BULLETPROOF HYPERDUCK PARALLEL SETUP
# Sends URLs to BOTH Downie AND Atlas simultaneously
# October 2025 Configuration
echo "πŸ”« BULLETPROOF HYPERDUCK β†’ DOWNIE + ATLAS SETUP"
echo "=============================================="
# Create the parallel processing script
cat > ~/hyperduck-parallel-handler.sh << 'EOF'
@Khamel83
Khamel83 / downie_applescript_bridge.sh
Created October 7, 2025 18:11
AppleScript-based Downie bridge - try Downie first, fallback to Atlas
#!/bin/bash
# AppleScript-based Downie β†’ Atlas Bridge
# Uses AppleScript to try Downie first, then Atlas
cat > ~/downie_atlas_applescript.scpt << 'EOF'
on run argv
set targetURL to item 1 of argv
set atlasServer to "https://atlas.khamel.com"
tell application "System Events"
@Khamel83
Khamel83 / downie_history_bridge.sh
Created October 7, 2025 18:10
Downie History Database Bridge - monitors actual Downie History.db for failed URLs
#!/bin/bash
# Downie History Database Bridge
# Monitors Downie's actual database for failed URLs
# Based on real monitoring data showing History.db usage
ATLAS_SERVER="https://atlas.khamel.com"
HISTORY_DB="/Users/macmini/Library/Containers/com.charliemonroe.Downie-4/Data/Library/Application Support/com.charliemonroe.Downie-4/History.db"
SENT_URLS_FILE="$HOME/.atlas_sent_urls.txt"
LAST_CHECK_FILE="$HOME/.atlas_last_check.txt"
@Khamel83
Khamel83 / downie_realtime_monitor.sh
Created October 7, 2025 18:02
Real-time Downie activity monitor to detect actual logging behavior during failures
#!/bin/bash
# Real-time Downie Activity Monitor
# Run this BEFORE triggering a Downie failure
echo "πŸ” REAL-TIME DOWNIE MONITORING"
echo "=============================="
# Create timestamp for new file detection
touch /tmp/before_downie_test
@Khamel83
Khamel83 / downie_container_check.sh
Created October 7, 2025 17:50
Check Downie sandboxed container logs - targeted based on diagnostic results
#!/bin/bash
# Check Downie Container Logs - Based on diagnostic results
echo "πŸ” CHECKING DOWNIE CONTAINERS"
echo "============================="
# From the diagnostic, we found these Downie containers:
CONTAINERS=(
"$HOME/Library/Containers/com.charliemonroe.Downie-4"
"$HOME/Library/Containers/com.charliemonroe.Downie-4-Downie-Extension"
@Khamel83
Khamel83 / downie_diagnostic.sh
Created October 7, 2025 17:44
Downie diagnostic script to find all log files and directories
#!/bin/bash
# Downie Diagnostic Script
# Run this on Mac Mini to find all Downie-related files and logs
echo "πŸ” DOWNIE DIAGNOSTIC SCRIPT"
echo "=========================="
# Find all Downie-related directories
echo "πŸ“ Searching for Downie directories..."
find ~ -name "*downie*" -type d 2>/dev/null | head -10
@Khamel83
Khamel83 / macmini_bridge_v2.sh
Created October 7, 2025 06:32
Enhanced Mac Mini bridge v2 with comprehensive Downie failure detection
#!/bin/bash
# MAC MINI BRIDGE V2 - Enhanced Downie failure detection
# More comprehensive patterns for detecting Downie failures
ATLAS_SERVER="https://atlas.khamel.com"
LOG_FILE="$HOME/Library/Logs/Downie.log"
SENT_URLS_FILE="$HOME/.atlas_sent_urls.txt"
DEBUG_LOG="$HOME/bridge_debug.log"
# Create tracking files
@Khamel83
Khamel83 / macmini_setup_simple.sh
Created October 7, 2025 06:11
Mac Mini bridge setup for Atlas with proper domain
#!/bin/bash
# MAC MINI BRIDGE SETUP - Simple version
# Run this on your Mac Mini to connect to Atlas
echo "πŸ”§ Setting up Hyperduck β†’ Downie β†’ Atlas pipeline..."
# Atlas server domain
ATLAS_SERVER="https://atlas.khamel.com"
# Test connection
@Khamel83
Khamel83 / MAC_MINI_BRIDGE_SETUP.sh
Created October 7, 2025 05:53
Updated Mac Mini bridge setup with IP-based connection and 100% uptime monitoring
#!/bin/bash
# MAC MINI BRIDGE SETUP - Updated for IP-based connection
# Run this on your Mac Mini to connect to Atlas via IP
echo "πŸ”§ Setting up Hyperduck β†’ Downie β†’ Atlas pipeline..."
echo ""
# Get Atlas server IP (replace with your actual server IP)
ATLAS_SERVER="http://54.210.133.145:35555" # Update this IP if needed
@Khamel83
Khamel83 / HYPERDUCK_DOWNIE_ATLAS_SETUP.sh
Created October 7, 2025 05:44
Complete setup script for Hyperduck β†’ Downie β†’ Atlas integration
#!/bin/bash
# HYPERDUCK β†’ DOWNIE β†’ ATLAS COMPLETE SETUP
# Run this on your Mac Mini to connect everything
# Usage: bash HYPERDUCK_DOWNIE_ATLAS_SETUP.sh
echo "πŸ”§ Setting up Hyperduck β†’ Downie β†’ Atlas pipeline..."
echo "πŸ“ Atlas Server: atlas.khamel.com:35555"
# Step 1: Create Downie failure monitor
cat > ~/downie-atlas-bridge.sh << 'EOF'