Skip to content

Instantly share code, notes, and snippets.

View unflores's full-sized avatar

A Flores unflores

View GitHub Profile
@greypants
greypants / README.markdown
Last active October 17, 2023 05:49 — forked from reagent/nav_link.rb
RAILS 3: nav_link helper for adding 'selected' class to navigation elements
#!/usr/bin/env node
var exec = require('child_process').exec,
sys = require('sys'),
fs = require('fs'),
p = JSON.parse(fs.readFileSync('./package.json').toString()),
libs = ""
for (prop in p.dependencies) {
libs += prop + '@"' + p.dependencies[prop] + '" '
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
##################################
# Edit these
set :application, "example_node_app"
set :node_file, "hello_world.js"
set :host, "ec2-174-129-114-66.compute-1.amazonaws.com"
ssh_options[:keys] = [File.join(ENV["HOME"], ".ec2", "default.pem")]
set :repository, "git://gist.github.com/479007.git"
set :branch, "master"