This file contains hidden or 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
% http GET http://example-app.d.rochacon.me | |
HTTP/1.1 200 OK | |
Connection: keep-alive | |
Content-Length: 32 | |
Content-Type: text/html; charset=UTF-8 | |
Date: Fri, 11 Jul 2014 15:17:31 GMT | |
Server: nginx/1.6.0 | |
X-Deis-Upstream: 10.13.0.134:49153 | |
69b0ee40084e4efdae5d2f9ddfbbfc49 |
This file contains hidden or 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 ( | |
"fmt" | |
"github.com/fsouza/go-dockerclient" | |
"log" | |
"os" | |
) | |
func main() { |
This file contains hidden or 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 | |
# This will install the latest version of Docker and configure it to | |
# listen to /var/run/docker.sock and 0.0.0.0:2375 | |
ufw allow ssh | |
ufw limit ssh | |
ufw enable | |
apt-get update -y && apt-get upgrade -yq | |
curl -s https://get.docker.io/ubuntu/ | sh | |
sed -i .bak -e 's/^DEFAULT_FORWARD_POLICY.*$/DEFAULT_FORWARD_POLICY="ACCEPT"/g' /etc/default/ufw | |
ufw reload |
This file contains hidden or 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
{ | |
"AWSEBDockerrunVersion": "1", | |
"Image": { | |
"Name": "rochacon/s3stub" | |
}, | |
"Ports": [ | |
{"ContainerPort": "80"} | |
] | |
} |
This file contains hidden or 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 | |
# | |
# Simple gitreceive-next hook to build and run a slug with Flynn | |
# | |
# This is an old script that I found sitting in my Desktop =P | |
# | |
# Last update: 2014-01-28 | |
# | |
set -e |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# Simple script to extract card info out of Trello | |
# | |
# ATTENTION: THIS IS TOO INCOMPLETE, but may be a base for something useful | |
# | |
# TODO: count points | |
# TODO: extra: count "blocks" per card | |
# | |
from multiprocessing import Pool |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
""" | |
This script cleans up celery.backend_cleanup task from a queue. | |
Different tasks will be printed and returned to the queue | |
""" | |
import kombu | |
AMQP_ENDPOINT = 'amqp://guest:guest@localhost:5672/vhost' | |
AMQP_QUEUE = 'celery' |
This file contains hidden or 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
// dumper is a simple HTTP server that dumps requests to stdout | |
// useful for debugging HTTP clients | |
package main | |
import ( | |
"bytes" | |
"flag" | |
"io" | |
"io/ioutil" |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
""" | |
Simple URL shortener built with Pyramid. | |
# Setup | |
## Dependencies | |
* pyramid>=1.5a3 | |
* sqlalchemy>=0.9 | |
* pyramid_tm |
This file contains hidden or 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 | |
# This script will setup your server from scratch | |
set -e | |
# Setup Docker | |
curl -sL http://get.docker.io/ | bash | |
docker pull flynn/slugbuilder | |
docker pull flynn/slugrunner |