This file contains hidden or 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
http://elafosobrerailes.blogspot.com.es/2011/08/cambiar-los-colores-del-terminal-cuando.html | |
https://gist.github.com/eLafo/1125487#file-colored_ssh-sh | |
====== | |
Steps | |
====== | |
1.- Install sshpass | |
sudo apt-get install sshpass |
This file contains hidden or 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 config --global core.excludesfile ~/.gitignore_global | |
# Some common .gitignore configurations: https://gist.github.com/octocat/9257657 | |
# Copy the next content on the .gitignore_global file: | |
.DS_Store | |
*.class |
This file contains hidden or 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
# Colorize Maven Output | |
# Colors reference: http://en.wikipedia.org/wiki/ANSI_escape_code | |
color_maven() { | |
$M2_HOME/bin/mvn $* | sed \ | |
-e 's/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/^[[32;1mTests run: \1^[[0m, Failures: ^[[31;1m\2^[[0m, Errors: ^[[33;1m\3^[[0m, Skipped: ^[[34;1m\4^[[0m/g' \ | |
-e 's/\(\[INFO\] \-[-]*$\)/^[[36;1m\1^[[0m/g' \ | |
-e 's/\(\[INFO\] Building.*\)/^[[36;1m\1^[[0m/g' \ | |
-e 's/\(.*WARN.*\)/^[[33;1m\1^[[0m/g' \ | |
-e 's/\(.*ERROR.*\)/^[[31;1m\1^[[0m/g' \ | |
-e 's/\(Downloaded:.*\)/^[[32;1m\1^[[0m/g' |
This file contains hidden or 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
mvn org.kuali.maven.plugins:graph-maven-plugin:1.2.3:dependencies -Dgraph.includes=com.islomar*:*:*,es.islomar*:*:* -Dgraph.hide=test compile |
This file contains hidden or 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
http://robinwinslow.co.uk/2013/06/07/create-github-repositories-from-the-command-line/ | |
# replace USER and REPO with real values | |
# but *not* the "/user/" in the GitHub URL | |
$ curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}' | |
# you will be prompted for your password | |
$ git remote add origin [email protected]:USER/REPO.git | |
Create alias in git: | |
git config --global alias.gh-create '!sh -c "curl -u \"islomar\" https://api.github.com/user/repos -d \"{\\\"name\\\":\\\"$1\\\"}\" && git remote add origin [email protected]:islomar/$1.git" -' |
NewerOlder