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
FROM dockerfile/nodejs | |
MAINTAINER Marvin | |
WORKDIR /root | |
RUN npm install -g yo generator-hubot | |
RUN useradd -ms /bin/bash marvin | |
ENV HOME /home/marvin | |
#Place here variables needed by hubot scripts | |
ADD env-vars.sh /home/marvin/.profile |
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 'net/http' | |
require 'json' | |
domain = 'domain.com' | |
uri = URI("http://#{domain}/challenge") | |
response = '' | |
begin | |
uri['challenge'] = 'challenge.json' | |
response = Net::HTTP.get_response uri |
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
#!/usr/bin/env bash | |
set -e | |
#### Adding everything INLINE just for sending you an unique gist | |
## Test: Run an amazon ubuntu 14.04 image, copy and run the script. | |
## Run `wget localhost` or connect to aws server IP for getting your greeting :) | |
#source config.variables | |
RUBY_PACKAGE="ruby2.0" |
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
'use strict'; | |
const modelList = [ 'oneModel', | |
'anotherModel' ] | |
let modelClasses = modelList.map((c,i,a) => require(`../models/${c}`)) | |
// let datetime = require('../lib/graphQl-dateTime') | |
const graphql = require('graphql').graphql | |
const graphQlBuilder = require('objection-graphql').builder |