I hereby claim:
- I am rubysolo on github.
- I am rubysolo (https://keybase.io/rubysolo) on keybase.
- I have a public key whose fingerprint is DAC3 8223 1D35 4CF9 65F4 DB74 4392 7357 9969 D06E
To claim this, I am signing this object:
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# @trenpixster wrote this file. As long as you retain this notice you | |
# can do whatever you want with this stuff. If we meet some day, and you think | |
# this stuff is worth it, you can buy me a beer in return | |
# ---------------------------------------------------------------------------- | |
# Use phusion/baseimage as base image. To make your builds reproducible, make | |
# sure you lock down to a specific version, not to `latest`! | |
# See https://github.com/phusion/baseimage-docker/blob/master/Changelog.md for |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
PG_OLD=9.1 | |
PG_NEW=9.4 | |
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install postgresql-$PG_NEW postgresql-server-dev-$PG_NEW postgresql-contrib-$PG_NEW -y | |
sudo su - postgres -c "psql template1 -p 5433 -c 'CREATE EXTENSION IF NOT EXISTS hstore;'" | |
sudo su - postgres -c "psql template1 -p 5433 -c 'CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";'" | |
sudo su - postgres -c "service postgresql stop" |
describe 'routes', -> | |
state = null | |
beforeEach -> | |
module 'templates' | |
module 'myApp', -> | |
inject (_$state_)-> state = _$state_ | |
it 'generates some url', -> |
package main | |
import "errors" | |
import "fmt" | |
import "io" | |
import "io/ioutil" | |
import "log" | |
import "os" | |
import "path/filepath" | |
import "strings" |
defmodule App.Router do | |
use Phoenix.Router | |
resources "users", Controller.Users | |
options "/users", Controller.Users, :options | |
end |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/> | |
<script src="http://cmx.io/v/0.1/cmx.js"></script> | |
<body> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> | |
<tspan x="0" y="0em">How Simpleton Works</tspan> | |
</label> | |
<actor t="translate(76,42)" pose="-11,9|-4,117|-11,99|-13,87|-11,79|-11,59|-16,34|-21,9|-6,34|-1,9|-18,79|-18,59|-6,79|-1,59"> |
ActiveSupport::Notifications.subscribe 'halted_callback.action_controller' do |name, start, finish, id, payload| | |
Rails.logger.warn { '=' * 80 } | |
Rails.logger.warn { "HALTED CALLBACK: #{ payload[:filter] }" } | |
end |
unless defined?(Rails) | |
# minimum viable implementation of Rails | |
class Rails | |
class << self | |
def root | |
Pathname.new(File.expand_path('../..', __FILE__)) | |
end | |
def env | |
'test'.tap do |e| |
I hereby claim:
To claim this, I am signing this object: