Handy commands

UNIX:
Locate java home: /usr/libexec/java_home -v 1.8

Locate application on port:  lsof -i:8080

Symbolic links:
rm /path/to/symlink
ln -s /usr/local/apache-maven-3.5.0/ /usr/local/maven

DOS:
Cleanup M2 REPO: del /s *SNAPSHOT*

GIT:
Show all “active” branches: git branch -a / git branch --no-merged master -a

List commit tickets: git log --oneline "{first-tag}..{last-tag}" | grep -E "[a-z0-9]{9,} ([A-Za-z0-9]+-[0-9]+)|(NOJIRA)" | gawk "{print $2}" | sed -e "s/[^A-Za-z0-9-]+//g"| sort | uniq