Skip to content

Instantly share code, notes, and snippets.

View treeder's full-sized avatar

Travis Reeder treeder

View GitHub Profile
package main
import (
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
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 $git_name
git config --global $git_email
# .netrc file for github, Go tool uses this
# Could try to change to: , 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 login $github_username password $github_password" > $HOME/.netrc
source ''
gem 'iron_mq', :git => '', :branch => 'v3'
gem 'quicky'
gem 'go'
gem 'uber_config'
treeder / test.rb
Created November 10, 2014 18:22
Gist 1
def func(yo)
treeder / hellobot.rb
Last active August 29, 2015 14:17
Slack hellobot
require_relative 'bundle/bundler/setup'
require 'iron_worker'
require 'slack_webhooks'
sh ='hellobot', IronWorker.payload, IronWorker.config['webhook_url'])
text = "Hello #{sh.user_name}!"