-
2015-11-10: Abandoned AWS EB.
Got
Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.
.Tried to set up CloudWatch Logs but got
The following resource(s) failed to create: [AWSEBCWLHttp4xxMetricFilter, AWSEBCWLHttp5xxMetricFilter].
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
CIPHER = { 'a' => 'n', 'b' => 'o', 'c' => 'p', 'd' => 'q', | |
'e' => 'r', 'f' => 's', 'g' => 't', 'h' => 'u', | |
'i' => 'v', 'j' => 'w', 'k' => 'x', 'l' => 'y', | |
'm' => 'z', 'n' => 'a', 'o' => 'b', 'p' => 'c', | |
'q' => 'd', 'r' => 'e', 's' => 'f', 't' => 'g', | |
'u' => 'h', 'v' => 'i', 'w' => 'j', 'x' => 'k', | |
'y' => 'l', 'z' => 'm' }.freeze | |
REVERSE_CIPHER = CIPHER.invert.freeze |
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
# config/initializers/assets.rb | |
# ... | |
# The last two are for the file browser | |
Rails.application.config.assets.precompile += %w(ckeditor/config ckeditor/application ckeditor/filebrowser/*) |
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
# spec/support/helpers.rb | |
require 'support/helpers/i18n_helpers' | |
# ... | |
RSpec.configure do |config| | |
config.include Features::I18nHelpers, type: :feature | |
# ... | |
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
# Assumes gems: Chewy, Money and eu_central_bank | |
class SearchForm | |
include ActiveModel::Model | |
DEFAULTS = { 'currency' => 'TRY' } | |
attr_accessor :price_min, :price_max, :currency | |
# ... |
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 'benchmark/ips' | |
def digits_s(n) | |
n.to_s.chars.map(&:to_i) | |
end | |
# http://stackoverflow.com/a/12909952/372654 | |
def digits_divmod(n) | |
n = n.abs | |
[].tap do |result| |
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
class CreateTables < ActiveRecord::Migration | |
def change | |
create_table :products do |t| | |
# ... | |
end | |
create_table :orders do |t| | |
# ... | |
end | |
create_table :order_items do |t| | |
t.references :order, index: true, foreign_key: true |
Concatenate the files in the following order:
Root CA Certificate - AddTrustExternalCARoot.crt
Intermediate CA Certificate - COMODORSAAddTrustCA.crt
Intermediate CA Certificate - COMODORSADomainValidationSecureServerCA.crt
Your EssentialSSL Certificate - www_example_com.crt *
(*) Exclude the real certificate "www_example_com.crt" if CA bundle is entered separately.