Skip to content

Instantly share code, notes, and snippets.

View shashank-shekhar's full-sized avatar
👋

Shashank Shekhar shashank-shekhar

👋
View GitHub Profile

Manage Multiple Claude Code Accounts

Run two Claude Code accounts simultaneously on macOS without re-authenticating by using separate configuration directories.

Steps

  1. Create Separate Config Directories
    mkdir ~/.claude

mkdir ~/.claude-cb

@shashank-shekhar
shashank-shekhar / configure-iterm2.md
Created April 11, 2025 19:24 — forked from v0lkan/configure-iterm2.md
How to Use `iterm2` like `guake`
  • First, install iterm2:
brew install iterm2 --cask
  • Then, go to Preferences → Keys → Hotkey and check the “show/hide all windows with a system-wide hotkey” checbox and choose your hotkey combination.
    • I use CTRL+~ to be Quake-compatible :), choose whatever suits your needs.
@shashank-shekhar
shashank-shekhar / keepawake.ps1
Last active August 29, 2024 17:09 — forked from jamesfreeman959/keepawake.ps1
A very simple PowerShell script to keep a Windows PC awake and make lync think the user is active on the keyboard
# Useful references:
#
# https://superuser.com/questions/992511/emulate-a-keyboard-button-via-the-command-line
# https://ss64.com/vb/sendkeys.html
# https://social.technet.microsoft.com/Forums/windowsserver/en-US/96b339e2-e9da-4802-a66d-be619aeb21ac/execute-function-one-time-in-every-10-mins-in-windows-powershell?forum=winserverpowershell
# https://learn-powershell.net/2013/02/08/powershell-and-events-object-events/
#
# show up time
(Get-Date) - (Get-CimInstance Win32_OperatingSystem).LastBootUpTime
@shashank-shekhar
shashank-shekhar / Clean-IISExpress.ps1
Created August 24, 2021 21:24 — forked from omidkrad/Clean-IISExpress.ps1
Delete IISExpress sites using PowerShell
Set-Alias appcmd "$env:ProgramFiles\IIS Express\appcmd.exe"
appcmd list site /text:SITE.NAME | % { appcmd delete site $_ }
# or remove IISExpress directory
Remove-Item -Recurse $env:USERPROFILE\Documents\IISExpress
@shashank-shekhar
shashank-shekhar / upload.js
Created November 21, 2020 00:37 — forked from virolea/upload.js
Tracking file upload progress using axios
upload(files) {
const config = {
onUploadProgress: function(progressEvent) {
var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total)
console.log(percentCompleted)
}
}
let data = new FormData()
data.append('file', files[0])