- Ensure the M2_REPO variable is set in Eclipse (Windows -> Preferences -> Java -> Build Path -> Classpath Variables)
- mvn eclipse:eclipse from project folder
- In Project Explorer, right click -> Import -> General -> Existing project from source
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
set ts=4 | |
set sw=4 | |
set softtabstop=4 | |
set expandtab | |
set number | |
set lazyredraw | |
set wildmenu | |
set showmatch | |
set incsearch | |
set hlsearch |
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
up () # up 3 to cd ../../.. | |
{ | |
local p= i=${1:-1}; | |
while (( i-- )); do | |
p+=../; | |
done; | |
cd "$p$2" && pwd | |
} |
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
set completion-ignore-case on | |
set completion-query-items -1 | |
set show-all-if-ambiguous on | |
set show-all-if-unmodified on | |
set skip-completed-text on |
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 weather="curl http://wttr.in/Orlando" |
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
private BigInteger checksum(Object obj) throws IOException, NoSuchAlgorithmException { | |
if (obj == null) { | |
return BigInteger.ZERO; | |
} | |
ByteArrayOutputStream bos = new ByteArrayOutputStream(); | |
ObjectOutputStream oos = new ObjectOutputStream(bos); | |
oos.writeObject(obj); |
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
#!/usr/bin/env bash | |
# To build: mvn compile assembly:single | |
# To run: java -jar target/<jarname>.jar | |
# Visit localhost:4567 in browser | |
groupId="org.dirk" | |
artifactId="sparkapp" | |
package=$groupId |
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
git --no-pager diff --no-prefix master..branch |
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
shopt -s globstar | |
shopt -s expand_aliases | |
shopt -s cdspell | |
shopt -s dirspell | |
shopt -s extglob |
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 gs="git status" | |
alias gl="git log --stat" | |
alias gb="git branch -avv" | |
alias gp="git pull --recurse-submodules --rebase && git submodule update --init" | |
function gd { | |
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative $1..$2 | |
} |
NewerOlder