Skip to content

Instantly share code, notes, and snippets.

View xbalaji's full-sized avatar

Balaji (xbalaji) V xbalaji

View GitHub Profile
@xbalaji
xbalaji / github-tag.sh
Last active May 31, 2026 00:36
github-tag.sh
#!/usr/bin/env bash
ghtag() {
# Crucial: Reset OPTIND so the function works on subsequent calls
local OPTIND=1
local remote="origin"
local message=""
local increment=false
local explicit_tag=""
local handled=false
@xbalaji
xbalaji / windows-terminal-settings.md
Last active April 15, 2026 05:32
windows-terminal-settings.md

settings.json

  • C:\Users\xbalaji\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json
  • /mnt/c/Users/xbalaji/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/settings.json
{
    "$help": "https://aka.ms/terminal-documentation",
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "actions": 
    [
@xbalaji
xbalaji / create_github_repo.sh
Last active March 16, 2026 08:23
create_github_repo.sh
#!/bin/bash
# ============================
# Script: create_github_repo.sh
# Purpose: Create a GitHub repo under an org by mirroring all branches
# from a template repo, clone via SSH, update README,
# push changes, assign team permissions, and list collaborators.
# ============================
# Defaults
@xbalaji
xbalaji / genai-links-useful-03.md
Last active March 11, 2026 06:11
genai-links-useful-03.md
@xbalaji
xbalaji / genai-links-useful-02.md
Created February 27, 2026 14:45
genai-links-useful-02.md
@xbalaji
xbalaji / venv-notes.md
Created February 26, 2026 06:23
venv-notes.md

setup virtual environment folder location, example as below

export VENV="${HOME}/dev/venv"

Python3

creating python3 virtual environment in the directory $PWD/py3

python3 -m venv ${VENV}/py3
@xbalaji
xbalaji / firefox-cookie-exceptions.md
Created September 30, 2025 15:03
firefox-cookie-exceptions.md
@xbalaji
xbalaji / firefox_temporary_containers_preferences.json
Created June 29, 2025 03:13
firefox_temporary_containers_preferences.json
{
"version": "1.9.2",
"date": 1751157387934,
"preferences": {
"automaticMode": {
"active": true,
"newTab": "created"
},
"notifications": false,
"container": {
@xbalaji
xbalaji / firefox-extensions-installed.md
Created June 7, 2025 15:04
firefox-extensions-installed.md
@xbalaji
xbalaji / windows-cleanup.md
Created May 29, 2025 03:40
windows-cleanup.md

1. How to use WSL in a different partition of my Windows machine?

Answer:

You can install or move WSL distros to a different partition like this:

Option 1: Install a New WSL Distro to a Different Drive

  1. Download .appx file (e.g., Ubuntu).
  2. Extract it to D:\WSL\Ubuntu using Expand-Archive.