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
| FROM golang:latest | |
| # ... | |
| RUN mkdir -p $GOROOT/src/github.com/MY_ORG | |
| # fetch private repo example | |
| RUN git clone -b go https://MY_AUTH_TOKEN:[email protected]/MY_ORG/MY_REPO.git $GOPATH/src/github.com/MY_ORG/MY_REPO | |
| # go get public repo example |
| const fs = require('fs'); | |
| const commonCliConfig = 'node_modules/@angular/cli/models/webpack-configs/common.js'; | |
| const pug_rule = `\n{ | |
| test: /\\.(pug|jade)$/, | |
| use: [ | |
| 'apply-loader', | |
| { | |
| loader: 'pug-loader', | |
| options: { |
| # Pass the env-vars to MYCOMMAND | |
| eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
| # … or ... | |
| # Export the vars in .env into your shell: | |
| export $(egrep -v '^#' .env | xargs) |
| # | |
| # systemd unit file for CentOS 7, Ubuntu 15.04 | |
| # | |
| # Customize this file based on your bundler location, app directory, etc. | |
| # Put this in /usr/lib/systemd/system (CentOS) or /lib/systemd/system (Ubuntu). | |
| # Run: | |
| # - systemctl enable sidekiq | |
| # - systemctl {start,stop,restart} sidekiq | |
| # | |
| # This file corresponds to a single Sidekiq process. Add multiple copies |
We need to generate a unique SSH key for our second GitHub account.
ssh-keygen -t rsa -C "your-email-address"
Be careful that you don't over-write your existing key for your personal account. Instead, when prompted, save the file as id_rsa_COMPANY. In my case, I've saved the file to ~/.ssh/id_rsa_work.
| /* file:///Users/henryhuman/Documents/04_Business/Bootstrap%20Creative/GitHub%20repositories/bootstrap-classes-list/bootstrap4.5.0.html */ | |
| .accordion | |
| .active | |
| .alert | |
| .alert-danger | |
| .alert-dark | |
| .alert-dismissible | |
| .alert-heading | |
| .alert-info |
Easy to remember, easy to forget.
It's nice to be able to run subl in a terminal.
| # Ecto - Model | |
| defmodule YourPhoenixApp.PaperclipAvatar do | |
| use YourPhoenixApp.Web, :model | |
| alias YourPhoenixApp.{Repo, PaperclipAvatar} | |
| # | |
| # There are places in my existing app where only the avatar image is required. | |
| # So I created a module that sole purpose was to read that data. | |
| # | |
| schema "users" do | |
| field :avatar_file_name, :string |