Skip to content

Instantly share code, notes, and snippets.

View zycon's full-sized avatar
🎯
Focusing

Tibin Lukose zycon

🎯
Focusing
View GitHub Profile
// removed gitignored films
git rm -r --cached .
//remove untracked files
git clean -f -x
@zycon
zycon / docker.html
Last active December 5, 2019 08:46
docker
stop all containers
docker kill $(docker ps -q)
remove all containers
docker rm $(docker ps -a -q)
remove all docker images
docker rmi $(docker images -q)
@zycon
zycon / gcloud
Last active December 10, 2019 11:51
get all zones by region filter
gcloud compute zones list --filter="region:europe-west1"
get all instances by instance groups by region
gcloud compute instance-groups list-instances GROUP_NAME --region REGION_NAME
@zycon
zycon / go
Created December 3, 2019 09:35
GO Lang
get-all-dependency-files
go get -d ./...
@zycon
zycon / process.txt
Last active March 21, 2020 20:20
process finding shortcuts
pgrep java
//list all processes/pid running in java
pgrep java | xargs kill
// chain kill
lsof -i:8080
//list pid running in port
lsof -i:8080 | awk 'NR==2 {print $2}'