Skip to content

Instantly share code, notes, and snippets.

View pelgrim's full-sized avatar

Lucas Vieira pelgrim

  • revelo
  • sao paulo - brazil
View GitHub Profile
@statico
statico / gist:3172711
Created July 24, 2012 21:15
How to use a PS3 controller on Mac OS X 10.7 (Lion)

How to use a PS3 controller on Mac OS X 10.7 (Lion)

  1. Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.

  2. Reset PS3 controller by inserting paperclip into pinhole near L2 button.

  3. Connect PS3 controller to Mac with USB cable.

  4. Enable Bluetooth.

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@pelgrim
pelgrim / birtmd.rb
Created July 13, 2011 18:00
Birtmd Is a Rails Template for Mongoid and Devise
#BIRTMD Is a Rails Template for Mongoid and Devise
#rails new your_project_name -m birtmd.rb
#Doesn't work for rails 3.1 (:()
gem('jquery-rails','1.0.12')
generate('jquery:install')
gem('mongoid','2.0.2')
gem('bson_ext')
generate('mongoid:config')
gem('devise','1.4.2')