Skip to content

Instantly share code, notes, and snippets.

View adomado's full-sized avatar

AdoMado.com adomado

View GitHub Profile
@chris
chris / nodejs_recipe.rb
Created May 13, 2011 05:55
Chef recipe to install node.js on Engine Yard AppCloud
#
# Cookbook Name:: nodejs
# Recipe:: default
#
# Build and install node.js
#
if ['app','app_master','solo'].include?(node[:instance_role])
version_tag = "v0.4.8"
source_base_dir = "/data/nodejs"
@tinomen
tinomen / a_couchdb_recipe_for_ey.txt
Created March 30, 2011 00:29
Altered couchdb recipe for use on EngineYard with chef-solo 0.6
I had to alter the recipe for couchdb available on opscode.com to work on engine yard. (http://community.opscode.com/cookbooks/couchdb)
1. EY still uses chef-solo 0.6 which requires the attributes file to be changed. trial and error found a working solution
2. EY is on gentoo and the service commands hang. Changed recipe to use the typical init.d path. Updated the init.d script.
3. added couchdb.yml template to add file to app_server:/data/[app_name]/shared/config
FYI I commented out the reference to the erlang recipe for now as we've added the erlang package to the entire environment.
#
# Cookbook Name:: nodejs
# Recipe:: default
#
if ['solo'].include?(node[:instance_role])
nodejs_file = "node-v0.1.101.tar.gz"
nodejs_dir = "node-v0.1.101"
nodejs_url = "http://nodejs.org/dist/#{nodejs_file}"
@jrichter
jrichter / erb.lang
Created October 3, 2009 22:04
For erb text highlighting in gedit. put it here: /usr/share/gtksourceview-2.0/language-specs/
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is a smashup by Justin Richter of html.lang and ruby.lang
html.lang
Authors: Marco Barisione, Emanuele Aina
Copyright (C) 2005-2007 Marco Barisione <barisione@gmail.com>
Copyright (C) 2005-2007 Emanuele Aina
ruby.lang
Author: Archit Baweja <bighead@users.sourceforge.net>
Copyright (C) 2004 Archit Baweja <bighead@users.sourceforge.net>