Skip to content

Instantly share code, notes, and snippets.

View spalenza's full-sized avatar

Rodolfo Spalenza spalenza

  • RDStation
  • Vitória - ES - Brazil
View GitHub Profile
@spalenza
spalenza / gist:3021614
Created June 30, 2012 00:44
Sublime Text 2 - Configuration font and tabs to spaces.
{
"font_size": 12.0,
"tab_size": 2,
"translate_tabs_to_spaces": true
}
@spalenza
spalenza / gist:3055176
Created July 5, 2012 17:50
Textmate Shortcuts
⌘↩ New line
⌘⇪| Align table
⌘⌥↓ Create RoR View
______________________________________________________________________________
Legend - http://macbiblioblog.blogspot.com.br/2005/05/special-key-symbols.html
⎋ Escape
@spalenza
spalenza / gist:3146120
Created July 19, 2012 19:19
New app with Sencha Touch Tools

Create new app with Sencha Touch Tools

Download Sencha Touch Sdk

Unzip Sencha Touch Skd, go to folder and a create new file with name .senchasdk

Run command for generate new Sencha Touch app

sencha generate app project_name project_folder
@spalenza
spalenza / .rvmrc
Created August 5, 2012 23:38
Ruby - Version Control File
rvm --create use version@project_name > /dev/null
Example:
rvm --create use 1.9.3@blog > /dev/null
@spalenza
spalenza / gist:3307942
Created August 9, 2012 20:52
Remove Line Textmate with Command + D
sed "$TM_LINE_NUMBER d"
@spalenza
spalenza / .rvmrc
Created September 19, 2012 16:05
Configure rvmrc in ~/.rvmrc
rvm_gemset_create_on_use_flag=1
rvm_install_on_use_flag=1
rvm_project_rvmrc=1
@spalenza
spalenza / gist:3756032
Created September 20, 2012 13:48
Error Ruby OS X Mountain Lion

Error

unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8...

Insert into ~/.profile_bash

export LC_ALL="en_US.UTF-8"

@spalenza
spalenza / config
Last active October 11, 2015 07:57
Fix timeout SSH at OS X
# Run
ssh-add -K
# PATH: ~/.ssh/config
# When in vi hit i to enter insert mode and add the following lines to the config file
ServerAliveCountMax 3
ServerAliveInterval 10
@spalenza
spalenza / KeyMappings
Created October 17, 2012 15:51 — forked from geekontheway/KeyMappings
NerdTree
o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|
O.......Recursively open the selected directory..................|NERDTree-O|
x.......Close the current nodes parent...........................|NERDTree-x|
@spalenza
spalenza / Gemfile
Created October 17, 2012 20:36 — forked from robotarmy/Gemfile
Adding Rake to Sinatra with Rspec
gem 'sinatra'
group :development,:test do
gem 'rspec'
gem 'rack-test'
end