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
require "spec_helper" | |
# :draper_with_helpers is necessary for the Draper objects | |
# to access real helpers, including URL helpers, in the spec. | |
describe MyDecorator, "#foo", :draper_with_helpers do | |
# This is necessary for the spec itself to use URL helpers | |
# like some_path(). | |
include Rails.application.routes.url_helpers |
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 |
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
# SELENIUM_SERVER is the IP address or hostname of the system running Selenium | |
# Server, this is used to determine where to connect to when using one of the | |
# selenium_remote_* drivers | |
SELENIUM_SERVER = "10.10.11.1" | |
# SELENIUM_APP_HOST is the IP address or hostname of this system (where the | |
# tests run against) as reachable for the SELENIUM_SERVER. This is used to set | |
# the Capybara.app_host when using one of the selenium_remote_* drivers | |
SELENIUM_APP_HOST = "10.10.11.2" |
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
source 'http://rubygems.org' | |
# Framework | |
gem 'rails', '~> 3.2.0' | |
# Datastores | |
gem 'pg' | |
gem "mongoid" | |
gem "mongo" | |
gem "bson" |
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
#!/usr/bin/env bash | |
# A gist for installing PostgreSQL with appropriate | |
# configuration on MacOS X. | |
# | |
# MIT License | |
# | |
# Copyright © 2014 Romain Champourlier <romain@softr.li> | |
brew update |
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
// Basic development proxy middleware for NodeJS. | |
// | |
// You may use it with BrowserSync to proxy some paths | |
// to another service. Example of BrowserSync conig: | |
// | |
// browserSync({ | |
// server: { | |
// baseDir: 'dist', | |
// middleware: function(req, res, next) { | |
// proxy('/api/', 127.0.0.1', 9292, req, res, next); |
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
# This config for Nginx provides you a local domain | |
# (www.phoenix.dev) for Phoenix webserver development. | |
# | |
# ## Prerequisites | |
# - You must update you /etc/hosts file accordingly. | |
# - You must create a self-signed certificate if you | |
# intend on using the HTTPS proxying. | |
# | |
# Add this file in the /servers directory accompanying | |
# your nginx.conf file. |
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
# Add this gem to your Gemfile | |
gem 'aws-sdk', '~> 2.5.1' |
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
# Session mocking may be used in feature tests to mock a session | |
# since it's not possible to inject the session through params or | |
# direct injection. | |
# | |
# SessionMock is a module that may be included | |
# in `Hanami::Web::Action` to override the session | |
# in feature specs. | |
# | |
# Usage (in the controller action): | |
# |