Skip to content

Instantly share code, notes, and snippets.

View trindadeptr's full-sized avatar

Pedro Trindade trindadeptr

  • Belgium
View GitHub Profile
@trindadeptr
trindadeptr / maven tips.sh
Created April 4, 2018 15:15 — forked from kra3/maven tips.sh
Speed up maven build times.
# rip off from https://zeroturnaround.com/rebellabs/your-maven-build-is-slow-speed-it-up/
# in .bashrc
set MAVEN_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
# add -DdependencyLocationsEnabled=false to retain fewer outgoing connections.
# compile all modules
mvn -T 1C install -offline
@trindadeptr
trindadeptr / gist:bbbdeec50a3c5703e859afb8e167839e
Last active March 20, 2018 12:04 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream