Skip to content

Instantly share code, notes, and snippets.

View senthilmurukang's full-sized avatar

Senthil Murugan Gnanasekarn senthilmurukang

View GitHub Profile
@senthilmurukang
senthilmurukang / kill-vscode-server.sh
Last active July 26, 2023 04:36
shell script alias to kill vscode server (needed when the vscode client fails to connect to a running vscode server process)
alias ck='ps -U $USER -o pid -o comm | grep -E "*node*" | sed -e 's/node$//' | xargs kill -9'
@senthilmurukang
senthilmurukang / stash-copy.sh
Last active May 10, 2024 15:50
shell script to copy stash from one folder to another. Example usage: ./stash-copy.sh /path/to/git/old/folder /path/to/git/new/folder
src=$1
dest=$2
current_directory=$(pwd)
cd $src
stashes=$(git stash list)
IFS=$'\n'
stash_messages=()
for stash in $stashes; do