Skip to content

Instantly share code, notes, and snippets.

View GuhaAG's full-sized avatar
Working from home

Arghya Guha GuhaAG

Working from home
View GitHub Profile
GuhaAG / stop
Created August 25, 2020 07:50
stop process at port
touch temp.text
lsof -n -i4TCP:$1 | awk '{print $2}' > temp.text
pidToStop=`(sed '2q;d' temp.text)`
> temp.text
if [[ -n $pidToStop ]]
kill -9 $pidToStop
echo "!! $1 is stopped !!"
GuhaAG /
Created December 2, 2019 13:22 — forked from sgtoj/
Ubuntu for Windows: Setup Docker for WSL
# install docker client
curl > ~/docker.tar.gz
tar xzvf ~/docker.tar.gz
sudo mv ~/docker/docker /usr/local/bin/docker
rm -rf ~/docker
rm -f ~/docker.tar.gz
# install docker-compose client
curl -L > ~/docker-compose
chmod +x ~/docker-compose
sudo mv ~/docker-compose /usr/local/bin/docker-compose