Last active
March 15, 2019 08:12
-
-
Save mengjiann/39cc00f96418a7cda5f404ac868172b0 to your computer and use it in GitHub Desktop.
Useful command
This file contains 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
# Spring cli init | |
spring init --artifactId demo --groupId com.mj --name demo --package-name com.mj.demo --dependencies web,lombok | |
# Maven quick start | |
mvn archetype:generate -DgroupId=com.mj -DartifactId=demo -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false | |
# Get grep output from kubectl get pod and run with command | |
kgp | grep nginx | awk '{print $1 " sh"}' | xargs -o kubectl exec -it | |
# Docker related | |
docker ps -q | xargs docker rm | |
docker images -q | xargs docker rmi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment