Skip to content

Instantly share code, notes, and snippets.

@pyrat
pyrat / gist:5683985
Created May 31, 2013 09:50
defaults to view hidden files but still doesnt really work
http://www.macworld.com/article/1051830/showallfinder.html
@pyrat
pyrat / gist:5683748
Created May 31, 2013 09:01
defaults to stop chrome swipe action
http://apple.stackexchange.com/questions/21236/how-do-i-disable-chromes-two-finger-back-forward-navigation
@pyrat
pyrat / gist:5520075
Created May 5, 2013 08:03
Coffeescript document.ready shorthand
$->
# event hooks and selectors here
https://github.com/skwp/dotfiles
http://stackoverflow.com/questions/8534055/why-am-i-getting-a-popup-message-when-i-hover-on-any-word-of-a-ruby-file
likely the issue
@pyrat
pyrat / gist:5451922
Created April 24, 2013 12:56
VIM select inside.
To select between the single quotes I usually do a vi' (select inner single quotes).
Inside a parenthesis block, I use vib (select inner block)
Inside a curly braces block you can use viB (capital B)
http://blog.romanandreg.com/post/6796749185/vim-ruby-slowness-fix
A1280 Battery
@pyrat
pyrat / gist:4665016
Created January 29, 2013 15:18
XCP Auto Power ON, Auto Boot
xe vm-param-set other-config:auto_poweron=true uuid="xyz"
Where uuid is the uuid of the slice in question.

Setting up Node Environment

Prerequisites for development

  • node - install from nodejs.org, most recent version 0.8.x
  • mongodb - install from source 2.x
  • redis - install from source 2.6.7
  • mysql - 5.x install from package manager / source
  • ruby - preferably 1.9.x (maybe install from source)
  • rubygems - 1.8.x