This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Claude100 Resume — Multi-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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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:\" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $uri = "WEB_HOOK_URL" | |
| $headers = @{"PARAMETER1"="VALUE1";"PARAMETER2"="VALUE2"} | |
| $response = invoke-restmethod -method post -uri $uri -headers $headers | |
| $jobid = [guid][string]$response.JobIds |