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 | |
| mkdir -p out | |
| for img in `grep image $1| sed -e 's/^.*image\: //g'`; | |
| do | |
| cleanname=${img/\//-} | |
| tag=`docker images | grep $img | awk '{print $2}'` | |
| echo "Exporting image: $img, tag:$tag ($cleanname)..." | |
| docker save $img -o out/$cleanname.tar |
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
| require 'goliath' | |
| module Goliath | |
| class Request | |
| old_post_process = instance_method(:post_process) | |
| define_method(:post_process) do |results| | |
| status, headers, body = *results | |
| # Include any data here | |
| # All requests will pass here |
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
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby | |
| # - a browser with WebSocket support | |
| # | |
| # Usage: | |
| # ruby redis_pubsub_demo.rb | |
| # |