Including Custom Library Into Maven

This can be achieved in just simple 2 steps

1. Install file in maven local repository

mvn install:install-file -Dfile=/path/jarfile.jar -DgroupId=com.company -DartifactId=module-util -Dversion=1.0.0 -Dpackaging=jar

2. Add the entry in the pom.xml.

Find all active IP Address in LAN

Run following script in terminal
-------------------------------

for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; done


Note : 192.168.1.* is the local IP range for modem, It can be different for your machine.

GitHub : Download commit as patch

I was searching for this, to directly download commits as patches
And here is how it works

Say there is commit
https://github.com/pentaho/mondrian/commit/5b5dbac3bd430ee9600e3d4db13aada06564c230

and you want to get it as patch, then just simply add ".patch" at the last of the url and download it via wget or browser.
https://github.com/pentaho/mondrian/commit/5b5dbac3bd430ee9600e3d4db13aada06564c230.patch


That's All