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
package main | |
import "os" | |
import "github.com/pusher/pusher-http-go" | |
func main() { | |
channel := os.Args[1] | |
event := os.Args[2] | |
message := os.Args[3] | |
client := pusher.Client{ |
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
set -g default-terminal "screen-256color" | |
# mouse support | |
set-option -g mouse on | |
# force a reload of the config file | |
unbind r | |
bind r source-file ~/.tmux.conf | |
# remap prefix to Control + a |
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
rbenv install 2.2.5 | |
rbenv local 2.2.5 | |
rbenv global 2.2.5 | |
rbenv rehash | |
gem install bundler | |
bundle install |
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
#!/bin/bash | |
docker-compose stop web | |
docker-compose rm web | |
docker rm `docker ps -a | grep radpadrails_web | awk '{ print $1 }'` | |
docker volume rm radpadrails_gems | |
docker volume rm radpadrails_tmp | |
docker-compose run --rm web bundle install |
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
#!/bin/bash | |
DEPLOYMENT_TIMEOUT="5m" | |
METADATA_SERVICE_URL="http://169.254.169.254/latest/meta-data" | |
apt-get update | |
# apt-get upgrade -y | |
apt-get install -y jq python-pip | |
pip install docker-cloud awscli |
NewerOlder