Skip to content

Instantly share code, notes, and snippets.

View thepixelabs's full-sized avatar
🧙‍♂️
Making magic happen

Pixelabs thepixelabs

🧙‍♂️
Making magic happen
View GitHub Profile
@thepixelabs
thepixelabs / claude100-resume.py
Last active April 6, 2026 15:16
Claude Code multi-account session resume — switch between Claude accounts without losing conversation history
#!/usr/bin/env python3
"""
Claude100 ResumeMulti-account Claude Code session manager.
Seamlessly switch between Claude Code accounts without losing conversation
history. Uses symlinks to share session data and a separate HOME for
alt account credentials.
Usage:
claude100-resume Interactive session picker (arrow keys)
@thepixelabs
thepixelabs / iterm2-binary-colors.zsh
Created April 3, 2026 20:12
Change iTerm2 background color based on active binary (Gemini/Claude/Copilot)
# --- iTerm2 Command-Based Background Colors ---
# Changes the iTerm2 background color based on the running binary.
# Gemini: Green | Claude: Purple | Copilot: Bronze
iterm2_bg_color_preexec() {
# Match the start of the command
case "$1" in
gemini*) printf "\e]11;#002200\a" ;; # Dark Green
claude*) printf "\e]11;#1A0022\a" ;; # Dark Purple
copilot*) printf "\e]11;#221100\a" ;; # Dark Bronze
@thepixelabs
thepixelabs / mysql_secure.sh
Last active July 21, 2020 23:10 — forked from Mins/mysql_secure.sh
Automating mysql_secure_installation
#!/bin/bash
apt -y install expect
MYSQL_ROOT_PASSWORD=1234
SECURE_MYSQL=$(expect -c "
set timeout 10
spawn mysql_secure_installation
expect \"Press y|Y for Yes, any other key for No:\"
@thepixelabs
thepixelabs / gist:6dba204c0b770a1501de004e0f031eee
Created January 29, 2019 22:24
Ansible provision docker image
FROM phusion/baseimage:0.9.15
RUN apt-get update && \
apt-get install -y python python-dev python-pip && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN pip install ansible
RUN ansible-galaxy install \
Ansibles.hostname \
Ansibles.apt \
@thepixelabs
thepixelabs / Invoke-AzureRunbook.ps1
Last active January 11, 2018 11:55
Invoke Azure Webhook
$uri = "WEB_HOOK_URL"
$headers = @{"PARAMETER1"="VALUE1";"PARAMETER2"="VALUE2"}
$response = invoke-restmethod -method post -uri $uri -headers $headers
$jobid = [guid][string]$response.JobIds