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
# CHECK ACTUAL VERSION: https://github.com/barthr/redo/releases | |
REDO_VERSION=0.5.0 | |
wget https://github.com/barthr/redo/releases/download/v${REDO_VERSION}/redo_${REDO_VERSION}_Linux_x86_64.tar.gz | |
tar -xf redo_${REDO_VERSION}_Linux_x86_64.tar.gz redo | |
sudo mv redo /usr/local/bin | |
rm -rf redo_${REDO_VERSION}_Linux_x86_64.tar.gz redo | |
echo '### REDO CONFIG START ###' >> ~/.bashrc | |
echo 'export REDO_HISTORY_PATH=$HISTFILE' >> ~/.bashrc | |
echo 'export REDO_EDITOR=vim' >> ~/.bashrc | |
echo 'shopt -s histappend' >> ~/.bashrc |
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
# Alias for use any patch and distribution of specific java version (using sdkman) | |
# usage sdkj 17 | |
# Source: https://gist.github.com/speedlog/c96ed2c40588c0482ea7123a5ae2f241 | |
alias sdkj='_sdkman_use_any_java(){ java_sdkman=$(find ~/.sdkman/candidates/java -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | grep "^$1" | sort -r | head -n1) && if [[ -z $java_sdkman ]]; then echo "Cant find java $1 installed by sdkman"; return; fi && source "$HOME/.sdkman/bin/sdkman-init.sh" && sdk use java $java_sdkman; }; _sdkman_use_any_java' |
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
wget https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper-distribution/3.1.0/maven-wrapper-distribution-3.1.0-bin.zip | |
unzip maven-wrapper-distribution-3.1.0-bin.zip | |
rm maven-wrapper-distribution-3.1.0-bin.zip | |
# get current version from maven repository | |
MAVEN_CURRENT_RELEASE=$(curl -s https://repo1.maven.org/maven2/org/apache/maven/apache-maven/maven-metadata.xml | grep -oPm1 "(?<=<release>)[^<]+") | |
# or uncomment below line to explicit version | |
#MAVEN_CURRENT_RELEASE=3.8.5 | |
echo "distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MAVEN_CURRENT_RELEASE/apache-maven-$MAVEN_CURRENT_RELEASE-bin.zip" >> .mvn/wrapper/maven-wrapper.properties |
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
MAVEN_CURRENT_RELEASE=$(curl -s https://repo1.maven.org/maven2/org/apache/maven/apache-maven/maven-metadata.xml | grep -oPm1 "(?<=<release>)[^<]+") | |
echo "Setting up wrapper for maven $MAVEN_CURRENT_RELEASE" | |
mvn wrapper:wrapper -Dmaven=$MAVEN_CURRENT_RELEASE |
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
- hosts: "{{ nodes }}" | |
gather_facts: no | |
vars: | |
- category: ROOT # pass here ROOT or package or classname with package | |
- level: INFO # pass here logging level or null | |
tasks: | |
- name: "Change logging level to '{{ level }}' for '{{ category }}'" | |
when: level != "null" | |
uri: | |
url: "http://localhost:8080/actuator/loggers/{{ category }}" |