Skip to content

Instantly share code, notes, and snippets.

View ruuts's full-sized avatar

Ruud Seydel ruuts

View GitHub Profile
@ruuts
ruuts / download_urls_from_csv.rb
Created April 28, 2020 13:50
Download urls from CSV
require 'csv'
require 'optparse'
require 'open-uri'
options = {
file: nil,
column_index: nil
}
parser = OptionParser.new do |opts|
@ruuts
ruuts / team.rb
Created February 27, 2020 16:44
Booking Experts - Join our team
module BookingExperts
module HasRoles
ROLES = {
backend: %w[Ruby Rails Postgres],
full_stack: %w[Ruby Rails Postgres React Javascript],
dev_ops: %w[Ruby Rails Postgres AWS Redis Elasticsearch],
product_design: %w[Sketch]
}
ROLES.each do |role, basic_tools|
@ruuts
ruuts / team.rb
Last active February 27, 2020 15:09
Join the team
module BookingExperts
class Team
def initialize
@team = []
end
def self.build(&block)
new.tap do |team|
team.instance_eval(&block)
end
@ruuts
ruuts / 051_worker_upstart.config
Created November 15, 2016 13:48
Shoryuken worker daemon for Elastic Beanstalk
files:
"/opt/elasticbeanstalk/support/conf/shoryuken.conf":
mode: "000755"
content: |
description "Elastic Beanstalk Shoryuken Upstart Manager"
start on runlevel [2345]
stop on runlevel [06]
# explained above
respawn
respawn limit 3 30
@ruuts
ruuts / translator.rake
Created October 20, 2014 07:45
i18n missing keys to gengo export/import
namespace :translator do
desc "Export missing translations for a specific locale"
task :export_keys => :environment do
from = ENV['FROM']
to = ENV['TO']
if from.present? and to.present?
translator = Translator.new(
from: from.to_sym,
to: to.to_sym
)