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
| # Anywhere that accepts macros (+) | |
| Format: $Prompt:Label:default$ | |
| Example: `-Dconfig.resource=env/$Prompt:Env File Name:local$.conf` | |
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
| # show options available | |
| mvn help:help | |
| # Interactive shell to evaluate maven expressions like ${project.groupId} | |
| mvn help:evaluate | |
| # shows information about the plugin | |
| mvn help:describe -Dplugin=org.apache.maven.plugins:maven-shade-plugin -Ddetail | |
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
| tr -cs A-Za-z '\n' | | |
| tr A-Z a-z | | |
| sort | | |
| uniq -c | | |
| sort -rn | | |
| sed ${1}q |
kubectl get nodes > all_nodes.txt
cat all_nodes.txt | while read line ; do if [[ $line == *"sobusy"* ]]; then echo $line; fi; done > filtered_nodes.txt
kubectl logs <pod> <search_criteria> > some_file.txt
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
| #!/bin/bash | |
| ################ | |
| # Uncomment if you want the script to always use the scripts | |
| # directory as the folder to look through | |
| #REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| REPOSITORIES=`pwd` | |
| IFS=$'\n' |
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
| # list installed packages | |
| rpm -qa | |
| # list files installed by a package | |
| rpm -ql [rpm file 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
| $ find . -name "*.jar" -print0 | xargs -0 -n1 unzip -l | grep Exception |
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
| # lists the env vars for the process | |
| $ cat /proc/28818/environ | tr '\0' '\n' | |
| # lists more details about the process, including the env vars | |
| $ ps e -ww -p 28818 |
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
| $ mvn spring-boot:run \ | |
| -P '!default' \ # setting a profile, in this case, excluding it by prefixing it with '!' | |
| -Dspring-boot.run.jvmArguments="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000" # debug settings |
NewerOlder