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
# Gemfile | |
source 'http://rubygems.org' | |
# Framework | |
gem 'rails', '~> 3.0.9' | |
gem 'jquery-rails' | |
# Running | |
gem 'thin' |
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
# features/support/hooks.rb | |
# This ensure SslRequirement is enabled for all scenarios, except | |
# if stated otherwise elsewhere (such as within Before('@javascript@')) | |
Before do | |
SslRequirement.disable_ssl_check = false | |
end | |
Before('@javascript') do | |
SslRequirement.disable_ssl_check = true |
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
var GitHubApi = require("github"); | |
var user = "ajaxorg"; | |
var repos = ["ace", "cloud9"]; | |
var github = new GitHubApi({ | |
version: "3.0.0" | |
}); | |
repos.forEach(function(repo) { |
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
[2012/04/27 09:00:05][message] Backup for 'App DB - frequent (db_frequent)' Completed Successfully in 00:00:03 | |
[2012/04/27 09:08:02][message] Performing Backup for 'App files (system - avatars, qrcodes) (files)'! | |
[2012/04/27 09:08:02][message] [ backup 3.0.24 : ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] ] | |
[2012/04/27 09:08:02][message] Syncer::Cloud::S3 started the syncing process: | |
[2012/04/27 09:08:03][message] Generating checksums for '/home/user/rails/app/shared/system' | |
[2012/04/27 09:08:05][message] [skipping] 'files/system/avatars/10/... | |
[2012/04/27 09:08:05][message] [skipping] 'files/system/avatars/10/... | |
[2012/04/27 09:08:05][message] [skipping] 'files/system/avatars/10/... | |
[2012/04/27 09:08:05][message] [skipping] 'files/system/avatars/10/... | |
[2012/04/27 09:08:05][message] [skipping] 'files/system/avatars/100/... |
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
- if flash | |
- flash.each do |level, message| | |
%div{:class => "alert #{flash_level(level)}"} | |
%button.close{:"data-dismiss" => 'alert'}= "×" | |
= message |
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 'sinatra/base' | |
module Sinatra | |
module JstHamlAssets | |
module Helpers | |
def not_found | |
[404, 'JST Haml template not found'] | |
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
require 'sinatra/base' | |
module Sinatra | |
module JstHamlAssets | |
module Helpers | |
def not_found | |
[404, 'JST Haml template not found'] | |
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
site "http://community.opscode.com/api/v1" | |
## | |
# Base | |
# | |
cookbook "apt" | |
cookbook 'build-essential' | |
cookbook 'git' |
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
# Script to ease downloading of cookbooks from Opscode repo and Github | |
# by using a YAML file to describe the necessary cookbooks. | |
require 'yaml' | |
require 'fileutils' | |
script_dir = File.expand_path('.') | |
cookbooks_dir = File.join(script_dir, 'cookbooks') | |
archives_dir = File.join(script_dir, 'cookbooks_archives') |
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
vagrant@lucid32:/vagrant$ bundle exec guard -d -p -l 10 | |
ERROR: Please add "gem 'ruby_gntp'" to your Gemfile and run Guard with "bundle exec". | |
DEBUG (08:20:49): Command execution: which notify-send | |
DEBUG (08:20:49): Command execution: emacsclient --eval '1' 2> /dev/null || echo 'N/A' | |
Guard could not detect any of the supported notification libraries. | |
Guard is now watching at '/vagrant' | |
DEBUG (08:20:49): Command execution: hash stty | |
DEBUG (08:20:49): Hook :start_begin executed for Guard::SelfTest | |
guard-self_test is running... | |
DEBUG (08:20:49): Hook :start_end executed for Guard::SelfTest |