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
" disable arrow keys | |
map <down> <nop> | |
map <left> <nop> | |
map <right> <nop> | |
map <up> <nop> | |
imap <down> <nop> | |
imap <left> <nop> | |
imap <right> <nop> |
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 'tilt' | |
require 'yajl' | |
module Tilt | |
class JrbBuilder < Template | |
def prepare | |
@code = data | |
end |
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
{ | |
href: "http://example.com/databases/1", | |
_type: "Database", | |
name: "test_db", | |
server_hostname: "betabox.mongomachine.com", | |
server_port: 27017, | |
account_href: "http://example.com/accounts/1", | |
authorized_users_href: "http://example.com/authorized_users", | |
storage_stats_href: "http://example.com/database/1/storage_stats", | |
request_stats_href: "http://example.com/database/1/request_stats", |
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 'ostruct' | |
class Keister::App | |
class DatabasesResource | |
include Spinal::Resource | |
resource '/databases' | |
def get | |
@databases = [OpenStruct.new(:created_at => Time.now.utc, :updated_at => Time.now.utc)] |
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 'ostruct' | |
class Keister::App | |
class DatabasesResource | |
include Spinal::Resource | |
resource '/databases' | |
def get | |
@databases = [OpenStruct.new(:created_at => Time.now.utc, :updated_at => Time.now.utc)] |
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 'ostruct' | |
class Keister::App | |
class DatabasesResource | |
include Spinal::Resource | |
resource '/databases' | |
def get | |
@databases = [OpenStruct.new(:created_at => Time.now.utc, :updated_at => Time.now.utc)] |
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
app_path = node[:core][:app_path] | |
branch = node[:core][:deploy_branch] | |
directory app_path do | |
owner "ssbe" | |
group "ssbe" | |
mode "0755" | |
end |
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
name "postgresql" | |
description "SSBE postgres" | |
run_list "recipe[ssbe_base]", "recipe[postgresql::server]" | |
default_attributes( | |
"aws" => { | |
}, | |
"postgresql" => { | |
"data_dir" => "/data/postgresql", |
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
default[:sysctl][:settings]["kernel.shmmax"] = "536870912" # Must be bigger than "shared_buffers" | |
default[:sysctl][:settings]["kernel.shmall"] = "536870912" | |
default[:postgresql][:data_dir] = "/data/postgresql" | |
default[:postgresql][:config_dir] = "/etc/postgresql/8.4/sspg" | |
default[:postgresql][:max_connections] = "100" | |
::Chef::Node.send(:include, Opscode::OpenSSL::Password) | |
default[:postgresql][:ssbe_password] = secure_password |
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
# | |
# Cookbook Name:: ruby_enterprise | |
# Recipe:: default | |
# | |
# Author:: Joshua Timberman (<[email protected]>) | |
# Author:: Sean Cribbs (<[email protected]>) | |
# Author:: Michael Hale (<[email protected]>) | |
# | |
# Copyright:: 2009-2010, Opscode, Inc. | |
# Copyright:: 2009, Sean Cribbs |