- Build base OS images from source ISOs
- Develop with Vagrant
- Build as Docker image
- Provision AMI instances.
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
rails plugin new catscan --skip-bundle -T --dummy-path=spec/dummy --mountable |
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' | |
puts Benchmark.measure { 500_000.times { '5' } } | |
puts Benchmark.measure { 500_000.times { "#{5}" } } |
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 'initialise_authentication' | |
module Refinery | |
module AuthenticateIdentities | |
class Engine < Rails::Engine | |
extend Refinery::Engine | |
isolate_namespace Refinery::AuthenticateIdentities | |
engine_name :refinery_authenticate_identities |
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
=begin | |
Tested in Spree 1.2.5 | |
Ref: https://github.com/spree/spree/issues/3262 | |
https://github.com/spree/spree/commit/bdd4db95eb2cce3e87f3991dbeca22e275862fc3 | |
=end | |
::Spree::Order.class_eval do |
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
af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-AT,de-CH,el,en,en-AU,en-CA,en-GB,en-IE,en-IN,en-NZ,en-US,eo,es,es-419,es-AR,es-CL,es-CO,es-CR,es-MX,es-PE,es-VE,et,eu,fa,fi,fr,fr-CA,fr-CH,gl,he,hi,hi-IN,hr,hu,id,is,it,it-CH,ja,jp,kn,ko,lo,lt,lv,mk,mn,nb,ne,nl,nn,or,pl,pt,pt-BR,pt-PT,rm,ro,rs,ru,sk,sl,sr,sv,sw,th,tl,tr,uk,uz,vi,wo,zh-CN,zh-HK,zh-TW |
---|
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
# https://developers.digitalocean.com/#list-all-regions | |
# Fetch with: curl -X GET "https://api.digitalocean.com/v2/regions" -H "Authorization: Bearer $TOKEN" | |
# Author: Michael de Silva <michael@mwdesilva.com> / bsodmike | |
# Updated: 02/11/2014 | |
{ | |
"regions": [ | |
{ | |
"name": "New York 1", | |
"slug": "nyc1", | |
"sizes": [ |
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
# FrontendHelper presentation PORO | |
def flag_for_country_code(country_code, &block) | |
country = ::Refinery::Professionals::GeoipCountry.find_by_country_code(country_code) | |
if country && country.available_locales.any? | |
flag_locale = country.available_locales.first | |
flag_url = "/#{flag_locale}" | |
country_name = country.name | |
yield(flag_url, country_name) |
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
module Project | |
module Decorators | |
module Draperize | |
def self.included _klass | |
_klass.class_eval { extend ClassMethods } | |
end | |
module ClassMethods | |
# Initialize a new decorator instance by passing in |
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
module NDAClient | |
module Queries | |
class FindCategoryAndProduct | |
def initialize(site, user, request, params) | |
@current_site = site | |
@current_user = user | |
@request = request | |
@params = params |
OlderNewer