This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// removed gitignored films | |
git rm -r --cached . | |
//remove untracked files | |
git clean -f -x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get-all-dependency-files | |
go get -d ./... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}' |
NewerOlder