This configuration is not maintained anymore. You should think twice before using it, Breaking change and security issue will likely eventually happens as any abandonned project.
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
echo "this gist has been moved into a project please clone from here: https://github.com/cloudnull/osa-multi-node-aio" |
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
#!/usr/bin/env bash | |
# Create associative arrays | |
declare -A interior=() | |
declare -A exterior=() | |
# Make sure ethtool is installed on this host | |
apt-get install -y ethtool &>/dev/null | |
# For each container |
Does writing tests and seeing them fail have you down? Add this new and improved test runner to your testing methodology and see your test runs improve.
#!/bin/sh
for ((i=0; i<$RANDOM; i++)); do echo -n '.' ; done ; echo ; echo '==== TESTS PASSED ====' ; echo 'Tests ran in 0.00s'
This one line will cure all your worries. Simply save it as a file called run_tests
and run chmod 755 run_tests
. Then whenever your tests have you down, run ./run_tests
from the command line and see green.
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
FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' |