Skip to content

Instantly share code, notes, and snippets.

@nmnp
nmnp / gist:167089924cc9031ff0aa
Created April 21, 2015 06:14
start and stop selenium server
alias startsel="nohup java -Dwebdriver.chrome.driver=./chromedriver -jar selenium-server-standalone-2.45.0.jar &"
stopsel() {
ps xu | grep selenium | grep -v grep | awk '{ print $2 }' | xargs kill -9
}
@nmnp
nmnp / ClearOrigFiles.txt
Created April 9, 2015 00:26
Clear all the orig file
git config alias.cleanall "clean -f */*.orig"
@nmnp
nmnp / GitMerge.txt
Created April 9, 2015 00:25
git merge dry run
git config --global alias.mergetest '!f(){ git merge --no-commit --no-ff "$1"; git merge --abort; echo "Merge aborted"; };f '