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
| # Node.js project shortcuts (requires 'ni' package manager - https://github.com/antfu-collective/ni) | |
| alias d="nr dev" # npm/pnpm/yarn run dev | |
| alias s="nr start" # npm/pnpm/yarn run start | |
| alias i="ni" # Install dependencies | |
| alias u="nun" # Uninstall a a package | |
| alias up="nlx taze" # Update dependencies to latest versions | |
| # Open Cursor app | |
| alias c="open $1 -a \"Cursor\"" |
| // Update globs depending on your framework | |
| --- | |
| name: tailwind_v4 | |
| description: Guide for using Tailwind CSS v4 instead of v3.x | |
| globs: ["**/*.{js,ts,jsx,tsx,mdx,css}"] | |
| tags: | |
| - tailwind | |
| - css | |
| --- |
| import { useEffect, useState } from "react"; | |
| interface LocationOptions { | |
| enableHighAccuracy?: boolean; | |
| timeout?: number; | |
| maximumAge?: number; | |
| } | |
| interface LocationState { | |
| coords: { |
| import Bun from 'bun' | |
| import { createYoga, YogaInitialContext, YogaServerInstance } from 'graphql-yoga' | |
| import { makeHandler } from "graphql-ws/lib/use/bun"; | |
| import { ExecutionArgs } from "@envelop/types"; | |
| import { schema } from './graphql/schema'; | |
| interface IUserContext { | |
| token?: string; | |
| } |
| npm init vue@3 | |
| if [ $? -eq 0 ]; then | |
| LAST_FOLDER=$(ls -td ./* | head -1) | |
| cd $LAST_FOLDER | |
| yarn | |
| code . | |
| else | |
| echo "Project creation unsuccessful 😔" | |
| fi |
| #!/usr/bin/env node | |
| const cliProgress = require('cli-progress'); | |
| const gh = require('github-url-to-object'); | |
| const meow = require('meow'); | |
| const puppeteer = require('puppeteer'); | |
| const usage = `Usage | |
| $ github-dependents <repository> |
| -- Based off IETF draft, https://datatracker.ietf.org/doc/draft-peabody-dispatch-new-uuid-format/ | |
| create or replace function uuid_generate_v7() | |
| returns uuid | |
| as $$ | |
| begin | |
| -- use random v4 uuid as starting point (which has the same variant we need) | |
| -- then overlay timestamp | |
| -- then set version 7 by flipping the 2 and 1 bit in the version 4 string | |
| return encode( |
| diskutil list | |
| diskutil unmountDisk /dev/disk2 | |
| diskutil eraseDisk FAT32 SANDISK /dev/disk2 |