Suppose you're opening an issue and there's a lot noisey logs that may be useful.
Rather than wrecking readability, wrap it in a <details> tag!
<details>
Summary Goes Here| #!/bin/bash | |
| sudo touch "/Library/Preferences/VMware Fusion/promiscAuthorized" |
| #!/bin/bash | |
| set -e | |
| set -x | |
| if [ ! -f ~/docker-engine_1.12.0-0~jessie_armhf-armv6.deb ]; then | |
| echo "...ERROR:" | |
| echo " Package ~/docker-engine_1.12.0-0~jessie_armhf-armv6.deb missing" | |
| exit 1 | |
| fi |
| Install-Module -Name xPSDesiredStateConfiguration -Force | |
| [DscLocalConfigurationManager()] | |
| configuration LCM { | |
| Settings { | |
| RebootNodeIfNeeded = $true | |
| ActionAfterReboot = 'ContinueConfiguration' | |
| } | |
| } |
| # Docker Machine for Consul | |
| docker-machine \ | |
| create \ | |
| -d virtualbox \ | |
| consul-machine | |
| # Start Consul | |
| docker $(docker-machine config consul-machine) run -d --restart=always \ | |
| -p "8500:8500" \ | |
| -h "consul" \ |
| #!/bin/bash | |
| set -e | |
| # Send a private message to someone on slack | |
| # from the command line. | |
| # Print a usage message and exit. | |
| usage(){ | |
| local name=$(basename "$0") |
| // | |
| // tested with kerberos 0.0.12 on linux against apache running mod_auth_kerb with Samba AD providing KDC | |
| // | |
| var Kerberos = require('kerberos').Kerberos; | |
| var kerberos = new Kerberos(); | |
| var http = require('http'); | |
| function httpget(opts, callback) { | |
| console.log('submitting to '+(opts.hostname||opts.host)+' with authorization header: '+(opts.headers||{}).authorization); | |
| var req = http.get(opts, function(res) { |
This gist is an implementation of http://sirile.github.io/2015/05/18/using-haproxy-and-consul-for-dynamic-service-discovery-on-docker.html on top of Docker Machine and Docker Swarm.
| #!/bin/bash | |
| if [ $# -lt 2 ]; then | |
| echo "Usage: $0 [domain to connect] [password]" | |
| exit 1 | |
| fi | |
| set -e | |
| red='\033[0;31m' |