create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| # | |
| # Cookbook Name:: delayed_job | |
| # Recipe:: default | |
| # | |
| node[:applications].each do |app_name, data| | |
| user = node[:users].first | |
| case node[:instance_role] | |
| when "solo", "app", "app_master" |
| require 'rspec/core/rake_task' | |
| require 'cucumber/rake/task' | |
| namespace :rcov do | |
| rcov_options = %w{ | |
| --rails | |
| --exclude osx\/objc,gems\/,spec\/,features\/,seeds\/ | |
| --aggregate coverage/coverage.data | |
| } |
| Some brief instructions on how to use Sprocket 2 in Rails to get CoffeeScript | |
| powered JS and SASS powered CSS with YUI compression all via the magic of rack. | |
| This stuff will be native in Rails 3.1 and the layout of the files on the | |
| filesystem will be different but this guide will get you working with it | |
| while we wait for all that to finalize. | |
| Ignore the number prefixes on each file. This is just to ensure proper order in the Gist. | |
| It's based on eric1234 gist https://gist.github.com/911003. ijust made it 3.1 compliant in terms of convention |
| require 'spork' | |
| Spork.prefork do | |
| # Loading more in this block will cause your tests to run faster. However, | |
| # if you change any configuration or code from libraries loaded here, you'll | |
| # need to restart spork for it take effect. | |
| # This file is copied to spec/ when you run 'rails generate rspec:install' | |
| ENV["RAILS_ENV"] ||= 'test' | |
| require File.expand_path("../../config/environment", __FILE__) |
| --colour | |
| -I app |
| Object | |
| +--Exception | |
| +--NoMemoryError | |
| +--ScriptError | |
| | +--LoadError | |
| | +--NotImplementedError | |
| | +--SyntaxError | |
| +--SecurityError # Was a StandardError in 1.8 | |
| +--SignalException | |
| | +--Interrupt |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| require 'spreadsheet' | |
| include Spreadsheet | |
| format.xls do | |
| # ------ El bloque XLS debe ir sin paginación y con producto ------ # | |
| fichero = "vila_#{@modo}_#{Time.now.to_f.to_s}.xls" | |
| ruta = "#{Rails.root}/tmp/#{fichero}" | |
| Spreadsheet.client_encoding = "UTF-8" | |
| workbook = Spreadsheet::Workbook.new |