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
Step #1: Install Laravel
Install the latest Laravel version i.e. Laravel 5.8. To do so go to the project directory and run the command:
composer create-project --prefer-dist laravel/laravel
Step #2: Create Package Directory
create folder from laravel root directory with this structure:
| <?php | |
| use Illuminate\Auth\UserInterface; | |
| use Illuminate\Auth\Reminders\RemindableInterface; | |
| use Laravel\Cashier\BillableInterface; | |
| use Illuminate\Auth\UserTrait; | |
| use Illuminate\Auth\Reminders\RemindableTrait; | |
| use Laravel\Cashier\BillableTrait; |
| # I'll be doing another one for Linux, but this one will give you | |
| # a pop up notification and sound alert (using the built-in sounds for macOS) | |
| # Requires https://github.com/caarlos0/timer to be installed | |
| # Mac setup for pomo | |
| alias work="timer 60m && terminal-notifier -message 'Pomodoro'\ | |
| -title 'Work Timer is up! Take a Break 😊'\ | |
| -appIcon '~/Pictures/pumpkin.png'\ | |
| -sound Crystal" |
| // Copy this code and paste it into Scriptable code editor on your phone | |
| async function loadStats() { | |
| const request = new Request("https://your-endpoint-giving-you-revenue-data.com"); | |
| const { todayUSD, todayOrders, revenue30USD, orders30 } = await request.loadJSON(); | |
| return { todayUSD, todayOrders, revenue30USD, orders30 }; | |
| } | |
| const usdFormatter = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }); |
| // set-up a connection between the client and the server | |
| var socket = io.connect(); | |
| // let's assume that the client page, once rendered, knows what room it wants to join | |
| var room = "abc123"; | |
| socket.on('connect', function() { | |
| // Connected, let's sign-up for to receive messages for this room | |
| socket.emit('room', room); | |
| }); |
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
| <option value="USD">United States Dollar - USD</option> | |
| <option value="EUR">Euro - EUR</option> | |
| <option value="GBP">British Pound - GBP</option> | |
| <option value="AUD">Australian Dollar - AUD</option> | |
| <option value="CAD">Canadian Dollar - CAD</option> | |
| <option value="JPY">Japanese Yen - JPY</option> | |
| <option value="BYR">Belarusian Ruble - BYR</option> | |
| <option value="AED">United Arab Emirates Dirham - AED</option> | |
| <option value="AFN">Afghan Afghani - AFN</option> | |
| <option value="ALL">Albanian Lek - ALL</option> |
| @layer utilities { | |
| .text-gradient { | |
| background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| } |
Here the best setup (I think so :D) for Keychron + Linux
/etc/modprobe.d/hid_apple.conf. Add this line to the file: options hid_apple fnmode=2sudo update-initramfs -u