Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
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
module Mongoid | |
module MassAssignmentSecurity | |
extend ActiveSupport::Concern | |
included do | |
attr_accessible nil | |
end | |
end | |
module Document |
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
web: bundle exec puma -p $PORT | |
worker: bundle exec rake jobs:work |
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
Fixing the postgresql initdb fatal shared memory error on Leopard | |
Published Tue 18 December 2007 11:09 (+1300) | |
Tagged | |
software (43 posts and 3 photos) | |
mac os x (6 posts) | |
When doing the post-install setup of postgresql default database using initdb, you may hit this error: | |
FATAL: could not create shared memory segment: Cannot allocate memory | |
DETAIL: Failed system call was shmget(key=1, size=1646592, 03600). |
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
# Don't forget to run this vagrant command first | |
# vagrant ssh-config >> ~/.ssh/config | |
set :user, 'vagrant' | |
set :run_method, :sudo | |
role :app, '33.33.33.10' | |
ssh_options[:keys] = `vagrant ssh_config | grep IdentityFile`.split.last |
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
// See comments below. | |
// This code sample and justification brought to you by | |
// Isaac Z. Schlueter, aka isaacs | |
// standard style | |
var a = "ape", | |
b = "bat", | |
c = "cat", | |
d = "dog", |
NewerOlder