Skip to content

Instantly share code, notes, and snippets.

View fuzzygroup's full-sized avatar

J. Scott Johnson fuzzygroup

View GitHub Profile
@fuzzygroup
fuzzygroup / rails_migration_create_countries.rb
Last active January 5, 2023 11:00 — forked from marcomd/rails_migration_create_countries.rb
Rails migration to add countries table and populate it with countries gem
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
require 'json'
require 'benchmark'
class BaseRuntime
def figlet
puts "starting service..."
end
end
class MainRuntime < BaseRuntime
@fuzzygroup
fuzzygroup / memory-cloudwatch.yaml
Created October 1, 2016 12:42 — forked from weirdbricks/memory-cloudwatch.yaml
ansible playbook to add memory metrics for cloudwatch - RedHat family only
- 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"