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
- hosts: all | |
vars: | |
ec2_access_key: "AKIA-----------A" | |
ec2_secret_key: "i-------------/--------A" | |
remote_user: ec2-user | |
sudo: yes | |
tasks: | |
- name: "make sure package perl-switch is installed for the monitoring scripts" | |
yum: name=perl-Switch state=present | |
when: ansible_os_family == "RedHat" |
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 'json' | |
require 'benchmark' | |
class BaseRuntime | |
def figlet | |
puts "starting service..." | |
end | |
end | |
class MainRuntime < BaseRuntime |
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 'countries/iso3166' | |
class CreateCountries < ActiveRecord::Migration[6.0] | |
def change | |
create_table :countries do |t| | |
t.string :name, limit: 64 | |
t.string :name_it, limit: 64 | |
t.integer :region, limit: 1 | |
t.string :iso2, limit: 2 | |
t.string :phone_prefix, limit: 3 |