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 / code-review.md
Last active January 13, 2026 22:28
Claude Code Command: Code Review
description argument-hint tools
Expert code reviewer for quality, security, and best practices.
file|dir|commit|range|branch-comparison
Read, Edit, Glob, Grep, Bash(git:*)

Review code for quality, security, and best practices.

What to Review

@shashank-shekhar
shashank-shekhar / document-tests.md
Created January 7, 2026 04:25
Claude Code custom command to document all the tests in a project
description tools
Document all tests in this project. Keep the lists up-to-date.
Bash, Glob, Grep, Read, Write, Edit

Document tests efficiently using framework discovery and incremental updates. Handles multi-language projects.

Primary Goal

First check if the project's claude.md (or CLAUDE.md) file contains testing framework information. If not, detect frameworks and update the file with:

This app does not collect any personally identifiable information from users.
No user data is stored outside of the customer's own devices.
@shashank-shekhar
shashank-shekhar / update package version.ps1
Created April 18, 2025 14:15
Update version of node package
$SourcesDirectory = "/path/to/packa.json/directory/"
$BuildId = "1234" # This should be set to the actual build ID in your CI/CD pipeline
$packageJsonPath = "$(SourcesDirectory)/package.json"
$package = Get-Content $packageJsonPath | ConvertFrom-Json
$package.version = "0.1.$(BuildId)"
$package | ConvertTo-Json -Depth 100 | Set-Content $packageJsonPath -Encoding UTF8
# from project root (serve build/ on port 8000):
python3 -m http.server 8000 --directory build
@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.
https://tsuyoshiushio.medium.com/understanding-dynamic-assembly-loading-with-assemblyloadcontext-in-c-640ec82bff63
https://github.com/TsuyoshiUshio/AssemblyLoadContextPike
@shashank-shekhar
shashank-shekhar / main.bicep
Created June 22, 2024 02:29
Bicep file to create azure resources
param location string = resourceGroup().location
param applicationSuffix string
param environment string
param resourceAbbreviations object
param sqlServerConfig object
param appServicePlanConfig object
param sqlDbConfig object
// Function to create resource names
@description('Creates a resource name based on the application suffix, environment, and resource abbreviation.')
@shashank-shekhar
shashank-shekhar / postman_extract_access_token.js
Created May 30, 2024 01:32
Postman script to exract access_token from response and save it into a variable
var response = JSON.parse(pm.response.text());
var jwt = response.access_token;
pm.collectionVariables.set("access_token", jwt);
var cryptoJS = require('crypto-js')
function base64UrlDecode(base64Url) {
let base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
switch (base64.length % 4) {