Skip to content

Instantly share code, notes, and snippets.

View tonivdv's full-sized avatar

Toni Van de Voorde tonivdv

View GitHub Profile
#!/usr/bin/env ruby
# Usage
# $ docker-machine create my-machine123 -d virtualbox
# $ ruby <(curl -L http://git.io/vUJDI) my-machine123
# https://gist.github.com/mattes/4d7f435d759ca2581347
require 'erb'
bootlocalsh = %Q(#/bin/bash
@tonivdv
tonivdv / sshmany
Created January 4, 2014 08:37 — forked from progrium/sshmany
#!/bin/bash
#
# Usage:
# $ echo "host1 host2 host3" | ./sshmany uname -a
# $ cat myservers | ./sshmany echo Hello world
#
cmd="$@"
servers="$(cat)"
i=37
for server in $servers; do