Skip to content

Instantly share code, notes, and snippets.

View treeder's full-sized avatar
🥌

Travis Reeder treeder

🥌
View GitHub Profile
package main
import (
"fmt"
"log"
"net/http"
"github.com/gorilla/mux"
)
docker run --rm -v $PWD:/app -w /app treeder/go vendor
docker run --rm -v $PWD:/app -w /app treeder/go build
docker run --rm -v $PWD:/app -w /app -p 8080:8080 iron/base ./app
docker run --rm -v $PWD:/app -w /app treeder/go remote https://github.com/treeder/hello-app.go.git
docker run --rm -v $PWD:/app -w /app -v /var/run/docker.sock:/var/run/docker.sock treeder/go image username/myapp:latest
read -p "What is your full name for git? " git_name
read -p "What is your email for git? " git_email
git config --global user.name $git_name
git config --global user.email $git_email
# .netrc file for github, Go tool uses this
# Could try to change to: https://coderwall.com/p/jtujgw , but json parsing might be hard part
read -p "What is your github username? " github_username
read -p "What is your github password? " github_password
echo "machine github.com login $github_username password $github_password" > $HOME/.netrc
source 'https://rubygems.org'
gem 'iron_mq', :git => 'https://github.com/iron-io/iron_mq_ruby.git', :branch => 'v3'
gem 'quicky'
gem 'go'
gem 'uber_config'
@treeder
treeder / test.rb
Created November 10, 2014 18:22
Gist 1
def func(yo)
end
@treeder
treeder / hellobot.rb
Last active August 29, 2015 14:17
Slack hellobot
require_relative 'bundle/bundler/setup'
require 'iron_worker'
require 'slack_webhooks'
sh = SlackWebhooks::Hook.new('hellobot', IronWorker.payload, IronWorker.config['webhook_url'])
text = "Hello #{sh.user_name}!"
sh.send(text)