Skip to content

Instantly share code, notes, and snippets.

View koleksiuk's full-sized avatar
🦀
Ship!

Konrad Oleksiuk koleksiuk

🦀
Ship!
View GitHub Profile

Dockerfile

FROM ruby:2.3.1-alpine

RUN apk --update --no-cache add build-base imagemagick less libxml2-dev libxslt-dev postgresql-dev && mkdir -p /app

WORKDIR /app

COPY Gemfile Gemfile.lock ./
@trcarden
trcarden / gist:3295935
Created August 8, 2012 15:28
Rails 3.2.7 SSL Localhost (no red warnings, no apache config)
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
module Models
module DateScope
extend ActiveSupport::Concern
included do
default_scope order('date_start ASC')
end
module ClassMethods
#== Some more methods