I hereby claim:
- I am skord on github.
- I am mikedanko (https://keybase.io/mikedanko) on keybase.
- I have a public key ASCBggVeba-tHgAZ8tw0d_N4W9KUI6pjM5EXrLUWSkY2wgo
To claim this, I am signing this object:
FROM fedora:latest | |
RUN dnf -y groupinstall "Development Tools" | |
RUN dnf -y groupinstall "Development Libraries" | |
RUN dnf -y install ruby ruby-devel rubygem-ffi xz mysql-devel libxslt-devel gcc-c++ cmake redhat-rpm-config nodejs | |
RUN gem install bundler | |
RUN bundle config build.nokogiri --use-system-libraries | |
RUN mkdir -p /app | |
ADD Gemfile /app/Gemfile | |
ADD Gemfile.lock /app/Gemfile.lock | |
WORKDIR /app |
registryv2: | |
restart: always | |
image: distribution/registry:2 | |
environment: | |
REGISTRY_HTTP_SECRET: REDACTED | |
expose: | |
- 5000 | |
registryv1: | |
restart: always |
# config/initializers/ar_innodb_row_format.rb | |
ActiveSupport.on_load :active_record do | |
module ActiveRecord::ConnectionAdapters | |
class AbstractMysqlAdapter | |
def create_table_with_innodb_row_format(table_name, options = {}) | |
table_options = options.merge(:options => 'ENGINE=InnoDB ROW_FORMAT=DYNAMIC') | |
create_table_without_innodb_row_format(table_name, table_options) do |td| | |
yield td if block_given? | |
end |
I hereby claim:
To claim this, I am signing this object:
module RandomNameHelper | |
def generate_name(seperator = '_') | |
rnd = Random.rand(64) | |
"#{adjectives.sample}#{seperator}#{nouns.sample}#{seperator}#{rnd}" | |
end | |
private | |
def adjectives | |
[ |
class Player | |
def play_turn(warrior) | |
if warrior.feel.empty? && warrior.health < 20 | |
warrior.rest! | |
elsif warrior.feel.empty? | |
warrior.walk! | |
else | |
warrior.attack! | |
end |
class Article < ActiveRecord::Base | |
attr_accessor :published | |
has_many :comments, dependent: :destroy | |
validates :title, presence: true, | |
length: { minimum: 5 } | |
validates :text, presence: true, | |
length: { minimum: 5 } | |
before_save :update_published_at |
class AddPublishedAtToArticles < ActiveRecord::Migration | |
def change | |
add_column :articles, :published_at, :datetime | |
Article.find_each do |article| | |
article.update_attributes(:published_at => article.updated_at) | |
end | |
end | |
end |
### Hello | |
Testing _markdown_ |
db: | |
image: postgres:9.3.5 | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: supersecret_password | |
web: | |
build: . | |
ports: | |
- '80:80' | |
links: |