Skip to content

Instantly share code, notes, and snippets.

View duncan-bayne's full-sized avatar

Duncan Bayne duncan-bayne

View GitHub Profile
@duncan-bayne
duncan-bayne / gist:4752214
Created February 11, 2013 03:16
RVM installation failure in Vagrant
vagrant@atlas-dev-precise64-devmac-1:~/.rvm/archives$ tar -zxvf wayneeseguin-rvm-stable.tgz
... snip a whole bunch of success ...
tar: wayneeseguin-rvm-287a5f6/README.rdoc: Cannot create symlink to `README': Read-only file system
tar: wayneeseguin-rvm-287a5f6/README.txt: Cannot create symlink to `README': Read-only file system
tar: wayneeseguin-rvm-287a5f6/install: Cannot create symlink to `scripts/install': Read-only file system
@duncan-bayne
duncan-bayne / gist:4600539
Created January 23, 2013 00:42
Setting a breakpoint from within the Ruby debugger
$ cat test.rb
class Foo
def bar
'baz'
end
end
debugger
Foo.new.bar
@duncan-bayne
duncan-bayne / development.rb
Created September 26, 2012 04:16
Development configuration
Atlas::Application.configure do
config.cache_classes = false
config.whiny_nils = true
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.active_support.deprecation = :log
config.action_dispatch.best_standards_support = :builtin
config.active_record.mass_assignment_sanitizer = :strict
config.active_record.auto_explain_threshold_in_seconds = 0.5
config.assets.compress = false