- Create shortcut in Ubuntu-Gnome Alacarte
sudo dmidecode -t 16
dmidecode -t memory
>> show memory slots
watch free -m
>> shows free memory
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 git@GitHub.com: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 git@github.com:islomar/$1.git" -' |
mvn org.kuali.maven.plugins:graph-maven-plugin:1.2.3:dependencies -Dgraph.includes=com.islomar*:*:*,es.islomar*:*:* -Dgraph.hide=test compile |
# 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' |
# 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 |
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 |
#Great tips | |
http://firstaidgit.io/#/ | |
#Display all unpushed commits | |
git log origin/master..HEAD | |
#GitHub emoji | |
http://www.emoji-cheat-sheet.com/ | |
#Git flow |
/etc/mongod.conf | |
mongod --shutdown | |
/data/db |
Ctl + P: search files | |
Ctl + Shift + F: search text in files |