ssh [email protected]
sudo passwd root
sudo su
local: cat ~/.ssh/id_rsa.pub
ssh [email protected]
sudo passwd root
sudo su
local: cat ~/.ssh/id_rsa.pub
require 'dry-validation'
require 'dry-struct'
require 'active_model/errors'
require_relative '../create_study'
module MyApp
module Types
include Dry::Types.module
Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
The book.
The author Ari Lerner is a Founder of FullStack. He also authored/co-authored:
He co-manages:
module HashAccessor | |
def method_missing(name, *args, &block) | |
h = Hash[self.map{|(k,v)| [k.to_sym,v]}] | |
if h.has_key?(name.to_sym) | |
h[name.to_sym] | |
end | |
end | |
end |
class Leg | |
include ActiveModel::Validations | |
include ActiveModel::Naming | |
include ActiveModel::Conversion | |
include Virtus | |
attribute :start_day, Integer | |
attribute :end_day, Integer | |
end |
# Put this in a new directory, then run `rackup` | |
require 'sinatra' | |
require 'grape' | |
class Web < Sinatra::Base | |
get '/' do | |
"Hello world." | |
end | |
end |
class EpisodeSearch | |
attr_reader :ability, :options | |
delegate :sanitize, to: Episode | |
def initialize(ability, options = {}) | |
@ability = ability | |
@options = options.dup | |
end | |
def tag |