Skip to content

Instantly share code, notes, and snippets.

View nacho87's full-sized avatar

Jose Ignacio Decima nacho87

View GitHub Profile
@nacho87
nacho87 / bash_profile
Created July 16, 2014 22:44
Bash_profile
# Configure colors, if available.
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
c_reset='\[\e[0m\]'
c_user='\[\e[0;32m\]'
c_path='\[\e[1;34m\]'
c_git_clean='\[\e[0;37m\]'
c_git_staged='\[\e[0;32m\]'
c_git_unstaged='\[\e[0;31m\]'
else
c_reset=
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
export PATH="/usr/local/share/npm/bin:$PATH"
export PATH="/usr/local/lib/node_modules/:$PATH"
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
{
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"font_size": 10,
"highlight_line": true,
"highlight_modified_tabs": true,
"hot_fix": false,
"ignored_packages":
[
"Vintage",
@nacho87
nacho87 / gist:41f11a6cffdb14e544fe
Last active August 29, 2015 14:07 — forked from ChangJoo-Park/gist:5443017
Rvm Install - Ruby - Rails - Node js
# If you meet install errors, see abid-hussain's comment
sudo apt-get --force-yes install build-essential openssl libreadline6 libreadline6-dev curl git-core \
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev \
libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison
&&
\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled
/* ==========================================================================
Gravity Forms
========================================================================== */
ul.gform_fields {
padding: 0;
margin: 0;
}
.gform_fields, .content .gform_fields {

Open the file hosts file.

$ vim /etc/hosts

Add a new entry with the wanted value.

127.0.0.1 customDomain.mx
color.ui=true
color.branch.current=yellow reverse
color.branch.local=yellow
color.branch.remote=green
color.diff.meta=yellow bold
color.diff.frag=magenta bold
color.diff.old=red bold
color.diff.new=green bold
color.diff.whitespace=red reverse
color.status.added=yellow
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
@nacho87
nacho87 / gist:ee7b0b907734d4d59bf7
Created March 7, 2015 14:30
Key For Sublime Text
[
{"keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": false } },
{"keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+]"], "command": "indent" },
{ "keys": ["ctrl+["], "command": "unindent" },
{ "keys": ["ctrl+shift+up"], "command": "swap_line_up" },
{ "keys": ["ctrl+shift+down"], "command": "swap_line_down" },
]