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
# Hi | |
# | |
# Tmuxinator | |
#[[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] and source $HOME/.tmuxinator/scripts/tmuxinator | |
# Exports | |
set -x MYSQL_SOCKET /tmp/mysql.sock | |
#set -x PATH $PATH:/usr/local/share/python # to locate powerline binary | |
set -x EDITOR /usr/local/bin/vim |
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
#aliases | |
alias ls='ls -G' # for colours | |
alias gw='cd ~/Documents/work/' | |
alias gsb='cd ~/Documents/sandbox/' | |
# Homebrew | |
if [ -f /usr/local/etc/bash_completion ]; then | |
. /usr/local/etc/bash_completion | |
fi |
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
execute pathogen#infect() | |
filetype plugin indent on | |
if &term =~ "xterm-256color" | |
set t_Co=256 | |
colorscheme xoria256 | |
endif | |
if has("gui_macvim") | |
set fuopt=maxvert,maxhorz " full screen takes entire screen | |
set guifont=FiraMono:h14 |
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
set-option -g default-shell "/bin/bash" | |
#set-option -g default-command "bash -l" | |
set-option -g default-command "reattach-to-user-namespace -l bash" | |
# Set the default terminal mode to 256color mode. | |
set -g default-terminal "screen-256color" | |
# Setting the prefix from `C-b` to `C-a`. | |
# By remapping the `CapsLock` key to `Ctrl`, | |
# you can make triggering commands more comfottable! | |
set -g prefix C-a |
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
if &term =~ "xterm-256color" | |
set t_Co=256 | |
colorscheme xoria256 | |
endif | |
if has("gui_macvim") | |
set fuopt=maxvert,maxhorz " full screen takes entire screen | |
set guifont=Inconsolata:h14 | |
"set guifont=MyFont\ for\ Powerline\ 14 | |
end |
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
syntax on | |
colorscheme xoria256 | |
if &term =~ "xterm-256color" | |
set t_Co=256 | |
colorscheme xoria256 | |
endif | |
if has("gui_macvim") | |
set fuopt=maxvert,maxhorz " full screen takes entire screen | |
end |
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
Somewhere in your layouts/application.html.erb | |
<%= content_for?(:content) ? yield(:content) : yield %> |
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
server { | |
listen 3000 ; | |
server_name localhost ; | |
root /home/camilo/Documents/webapps ; | |
passenger_enabled on ; | |
passenger_base_uri /original ; | |
passenger_base_uri /second ; | |
} |
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
The Bash shell prompt in your Terminal is very highly customizable and can display a wide variety of useful information. This is what my prompt looks like and how to create it. | |
[09:10:11] user@host ~/Desktop + | |
Explanation: | |
The following information is presented at the prompt: | |
[09:10:11] : the current time | |
user@host : the name of the logged in user and the host machine |
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
/* | |
Jquery and Rails powered default application.js | |
Easy Ajax replacement for remote_functions and ajax_form based on class name | |
All actions will reply to the .js format | |
Unostrusive, will only works if Javascript enabled, if not, respond to an HTML as a normal link | |
respond_to do |format| | |
format.html | |
format.js {render :layout => false} | |
end | |
*/ |
NewerOlder