Run two Claude Code accounts simultaneously on macOS without re-authenticating by using separate configuration directories.
- Create Separate Config Directories
mkdir ~/.claude-account1
mkdir ~/.claude-account2
you don't need hub to update pull requests. Pull requests are tied to the remote branch they're opened from (the pull-request "head"). Just push to that branch again and GitHub will automatically figure it out. You can even force-push, of you need that.
So to update a PR, even if you have removed the original remote branch out of which the PR was created, you just need to:
And after that the PR will be automagically updated :)
| npm install -g node-gyp | |
| export npm_config_node_gyp=/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js | |
| rm -rf node_modules(if already there) | |
| npm install | |
| # Source : https://github.com/nodejs/node-gyp/issues/2144#issuecomment-703856503 |
| # This file contains two config and it can't be runned | |
| # You should keep only one config (Single node or HA version) | |
| # Single node | |
| version: '2' | |
| services: | |
| zookeeper: | |
| image: confluentinc/cp-zookeeper:7.4.4 | |
| environment: | |
| ZOOKEEPER_CLIENT_PORT: 2181 |
| /* | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| </head> | |
| <body style="border-color: #edecec3b;"> | |
| <div> | |
| <h2 id="title">Game</h2> | |
| <canvas style="border: 1px solid gray;" data-size="900"></canvas> | |
| <br/> |
| FROM mcr.microsoft.com/devcontainers/base:jammy | |
| USER vscode | |
| RUN curl -s "https://get.sdkman.io" | bash | |
| RUN chmod +x "$HOME/.sdkman/bin/sdkman-init.sh" | |
| RUN "$HOME/.sdkman/bin/sdkman-init.sh" | |
| # Java Env |
| import time | |
| from watchdog.observers import Observer | |
| from watchdog.events import FileSystemEventHandler | |
| import os | |
| import sys | |
| from os import path | |
| import re | |
| """ | |
| Requirements : |
| # Coderetreat @2023 - Arolla | |
| # vivant + <=1 voisin ----> Meurt | |
| # vivant + >=4 voisins ----> Meurt | |
| # vivant + {2, 3} voisins ----> Conserve son statut | |
| # vide + 3 voisins ----> Survit | |
| # Business | |
| # Il nous a demandé de modéliser la grille : | |
| # - en gardant uniquement les cellules vivantes | |
| # - rille sans bornes |
| # Coderetreat @2023 - Arolla | |
| # Authors : NEB + AMEH | |
| # vivant + <=1 voisin ----> Meurt | |
| # vivant + >=4 voisins ----> Meurt | |
| # vivant + {2, 3} voisins ----> Conserve son statut | |
| # vide + 3 voisins ----> Survit | |
| # Business | |
| NEXT_STATE = { | |
| 0: (lambda _ : 0), |
| # Coderetreat @2023 - Arolla | |
| # Authors : NEB + AMEH | |
| # vivant + <=1 voisin ----> Meurt | |
| # vivant + >=4 voisins ----> Meurt | |
| # vivant + {2, 3} voisins ----> Conserve son statut | |
| # vide + 3 voisins ----> Survit | |
| # Business | |
| # Il nous a demandé de modéliser la grille : | |
| # - en gardant uniquement les cellules vivantes |