This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_links": { | |
"event": { | |
"href": "http://localhost:3000/api/v1/events/3" | |
}, | |
"person": { | |
"href": "http://localhost:3000/api/v1/people/2" | |
}, | |
"self": { | |
"href": "http://localhost:3000/api/v1/rsvps/1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Api | |
module V1 | |
module CollectionRepresenter | |
include Roar::JSON::HAL | |
# include Roar::Representer::Feature::Hypermedia | |
#pagination | |
def total_pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rake -T | |
DL is deprecated, please use Fiddle | |
rake about # List versions of all Rails framew... | |
rake apartment:create # Create all tenants | |
rake apartment:migrate # Migrate all tenants | |
rake apartment:migrate:down # Runs the "down" for a given migra... | |
rake apartment:migrate:redo # Rolls back the tenant one migrati... | |
rake apartment:migrate:up # Runs the "up" for a given migrati... | |
rake apartment:rollback # Rolls the migration back to the p... | |
rake apartment:seed # Seed all tenants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@ip-10-123-195-142:/var/log/dokku/vwf# docker ps | |
CONTAINER ID IMAGE COMMAND CREATED | |
STATUS PORTS NAMES | |
8a982064be2e postgres:9.3 "/docker-entrypoint. 27 minutes ago | |
Up 27 minutes 5432/tcp psql-single-container | |
root@ip-10-123-195-142:/var/log/dokku/vwf# dokku ls | |
=====> App Name Container Type Container Id | |
tmx web 5f0392975313eecbbe8055fb7fa1ef11daa67f2cdb1f86cea5528365222e08c1 | |
vwf jobs f687a8c04563a1e7f8194cfa257238b9e7b0953ca1cb31e0f36e2b3d162690da |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ parse_args git-receive-pack ''\''pymysample'\''' | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ args=("$@") | |
+ [[ git-receive-pack =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def parse_as_zone(time_string, tzid) | |
Time.use_zone(tzid) do | |
Time.zone.parse(time_string) | |
end | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'json' | |
# Use of guard-yield based on wisdom from https://github.com/e2 | |
# use of HTTP crime by @joshco | |
class SinatraGuard < Sinatra::Base | |
set :bind, '0.0.0.0' | |
set :port, 4000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"identifiers": [ | |
"osdi_sample_system:d91b4b2e-ae0e-4cd3-9ed7-d0ec501b0bc3", | |
"foreign_system:1" | |
], | |
"origin_system": "OSDI Sample System", | |
"created_date": "2014-03-20T21:04:31Z", | |
"modified_date": "2014-03-20T21:04:31Z", | |
"name": "March 14th Rally", | |
"title": "Rally for Justice", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"origin_system": "marriage_hero", | |
"van:shift": { | |
"shift_id": 1 | |
}, | |
"van:location": { | |
"location_id": 2 | |
}, | |
"van:role": { | |
"role_id": 3, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"origin_system": "VAN", | |
"name": "osdi_script", | |
"description": "OSDI Test Script", | |
"title": "osdi_script", | |
"summary": "OSDI Test Script", | |
"status": "Active", | |
"identifiers": [ | |
"VAN:235196" | |
], |
OlderNewer