This file contains 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
# tryrabl/app/views/users/base.rabl | |
attributes :id, :username, :email, :display_name |
This file contains 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
node.set['rvm']['default_ruby'] = 'ruby-1.9.2-p290' | |
require_recipe 'rvm' | |
node.set[:rvm_passenger][:rvm_ruby] = 'ruby-1.9.2-p290' | |
require_reciept 'rvm_passenger::nginx' |
This file contains 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
user nobody; | |
worker_processes 1; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; | |
This file contains 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
rvm system | |
brew install macvim --override-system-vim | |
rvm default |
This file contains 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
#config/deploy/demo.rb | |
# DEMO-specific deployment configuration | |
# please put general deployment config in config/deploy.rb | |
puts "****demo" |
This file contains 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
Volume 1 is more like normal book contents | |
Issue 1.1: Ruby's method lookup path, Part 1 | |
Issue 1.2: Ruby's method lookup path, Part 2 | |
Issue 1.3: Writing Configurable Applications, Part 1 | |
Issue 1.4: Writing Configurable Applications, Part 2 | |
Issue 1.5: Testing Anti-patterns; Testing Private Methods | |
Issue 1.6: Meditations on Bad and Good Code, Part 1 | |
Issue 1.7: Meditations on Bad and Good Code, Part 2 | |
Issue 1.8: Uses for Modules, Part 1 |
This file contains 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
require 'capistrano_colors' | |
# App Info | |
# ======== | |
#set :application, "set your application name here" | |
set :application, "learndeploy" | |
# Code Repo | |
# ========= | |
#set :repository, "set your repository location here" |
This file contains 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
# Convert any YouTube video into an audio file you can listen to on the go, using: | |
# http://rg3.github.com/youtube-dl/ | |
{ ~ } > brew install ffmpeg | |
{ ~ } > brew install ffprobe | |
{ ~ } > wget https://raw.github.com/rg3/youtube-dl/2012.02.27/youtube-dl | |
{ ~ } > chmod u+x youtube-dl | |
# Pick which video format you want to download.. (use any YT video link) |
This file contains 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
# test | |
puts source_paths | |
## need a get_template to load template from remote URL | |
get 'https://raw.github.com/gist/3185065/builder', 'config/deploy.rb' |
This file contains 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
#!/bin/sh | |
~/Applications/UniversalIndentGUI/indenters/uncrustify -l OC -q -c ~/Applications/UniversalIndentGUI/config/uncrustify_obj_c.cfg |
OlderNewer