Mostly copied from http://qiita.com/A-I/items/f6f4b1b50fed9db739df
Install Veertu and download and start the CoreOS image.
$ sudo passwd core
Mostly copied from http://qiita.com/A-I/items/f6f4b1b50fed9db739df
Install Veertu and download and start the CoreOS image.
$ sudo passwd core
require 'gollum/app' | |
require 'digest/sha1' | |
class App < Precious::App | |
User = Struct.new(:name, :email, :password_hash, :can_write) | |
before { authenticate! } | |
before /^\/(edit|create|delete|livepreview|revert)/ do authorize_write! ; end | |
helpers do |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'rotp' | |
require 'time' | |
user = ..hard coded.. | |
secret = ..hard coded.. | |
abort unless user and secret |