Skip to content

Instantly share code, notes, and snippets.

Avatar

Miroslav Tamáš miroslavtamas

View GitHub Profile
@miroslavtamas
miroslavtamas / mvn-list-phase.bat
Created Oct 27, 2020
Maven command to list plugin executions by phase for the current project.
View mvn-list-phase.bat
mvn fr.jcgay.maven.plugins:buildplan-maven-plugin:list-phase
@miroslavtamas
miroslavtamas / find-files-bigger-than-threshold.sh
Created Dec 7, 2018
Find files bigger than given threshold and print out its name and size
View find-files-bigger-than-threshold.sh
find . -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
@miroslavtamas
miroslavtamas / copy-folder-recursively-excluding-folders.sh
Created Sep 26, 2018
RSync command to recursively copy directory excluding some folders
View copy-folder-recursively-excluding-folders.sh
rsync -a --progress /sourcefolder /destinationfolder --exclude thefoldertoexclude
@miroslavtamas
miroslavtamas / install-oracle-jdk-8u72-linux-x64.sh
Created Apr 22, 2016
Install Oracle JDK 8u72 Linux x64 from command line on CentOS
View install-oracle-jdk-8u72-linux-x64.sh
#!/bin/sh
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u72-b15/jdk-8u72-linux-x64.tar.gz"
tar xzf jdk-8u72-linux-x64.tar.gz
mkdir /usr/java
mv jdk1.8.0_72/ /usr/java/
alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_72/bin/java 1
alternatives --install /usr/bin/javac javac /usr/java/jdk1.8.0_72/bin/javac 1
alternatives --config java
@miroslavtamas
miroslavtamas / install-apache-maven-3.3.9.sh
Created Apr 22, 2016
Install Apache Maven 3.3.9 on CentOS
View install-apache-maven-3.3.9.sh
#!/bin/sh
wget http://www.eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
tar xzf apache-maven-3.3.9-bin.tar.gz
mkdir /usr/local/maven
mv apache-maven-3.3.9/ /usr/local/maven/
alternatives --install /usr/bin/mvn mvn /usr/local/maven/apache-maven-3.3.9/bin/mvn 1
alternatives --config mvn
You can’t perform that action at this time.