Skip to content

Instantly share code, notes, and snippets.

View ashwch's full-sized avatar
😎
Look at me!

Ashwini Chaudhary ashwch

😎
Look at me!
View GitHub Profile
@ashwch
ashwch / git-worktrees-zero-to-hero.md
Last active November 23, 2025 13:42
Git Worktrees: From Zero to Hero - A comprehensive guide to using Git worktrees with submodules
@githubteacher
githubteacher / show-branch.md
Created February 29, 2016 20:59
Adding your Git branch to your command prompt

To show your active Git branch in your command prompt, you will need to do the following:

  • If you are on a Mac, you can add the code shown below to your .bash_profile file.
  • If you are on Linux, you will add the code shown below to your .bashrc file.
  • If you are on Windows, you probably aren't reading this because Windows provides this behavior by default.

The Script

parse_git_branch() {
@danmackinlay
danmackinlay / supervisord.sh
Created August 27, 2009 07:07
an init.d script for supervisord
#! /bin/sh
### BEGIN INIT INFO
# Provides: supervisord
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.