Skip to content

Instantly share code, notes, and snippets.

View derailed-dash's full-sized avatar

Dazbo (Darren Lester) derailed-dash

View GitHub Profile
@derailed-dash
derailed-dash / keepalive.py
Created June 7, 2025 23:19
Keepalive background thread for a Jupyter notebook
import time
import datetime
import threading
# Global flag to control the thread's execution
keep_alive_thread_running = False
keep_alive_thread = None # To store the thread object
def keep_colab_active_target():
global keep_alive_thread_running
@derailed-dash
derailed-dash / .bashrc
Last active August 15, 2026 13:00
bashrc for oh-my-bash, with random curated prompts, and aliases for tf and package management
# ==============================================================================
# CANONICAL BASH CONFIGURATION TEMPLATE (~/.bashrc / sample.bashrc)
# ==============================================================================
# Architecture Overview:
# 1. Essential Environment & Tool Managers (Top): Paths, NVM (node/npm/npx), Go,
# and Conda needed by Antigravity agents, MCP servers, and subshells.
# 2. Antigravity Agent & Headless Fast-Exit (Middle): Immediately short-circuits
# headless agent runners, preventing terminal hangs from UI themes/prompts.
# 3. Interactive Human Shells (Bottom): Heavy theme engines (Oh-My-Bash), tab
# completions, and background daemons (Socat, Direnv).