Skip to content

Instantly share code, notes, and snippets.

import io
import shutil
import timeit
import os
import uuid
from functools import partial
BYTES_PER_MB = 1048576
NUM_ROUNDS = 5
package main
import (
"flag"
log "github.com/Sirupsen/logrus"
"io"
"net"
)
var (
{
"AWSTemplateFormatVersion": "2010-09-09",
"Conditions": {
"CloudStorEfsSelected": {
"Fn::Equals": [
{
"Ref": "EnableCloudStorEfs"
},
"yes"
]
@amegianeg
amegianeg / awsedgevpclabels
Created May 25, 2017 00:59
edge with ucp labels
{
"AWSTemplateFormatVersion": "2010-09-09",
"Conditions": {
"CloudStorSelected": {
"Fn::Equals": [
{
"Ref": "EnableCloudStor"
},
"yes"
]
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"outputs": {
"ConnectToThisCluster": {
"type": "string",
"value": "[concat('docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST dockercloud/client ', variables('DockerCloudClusterName'))]"
},
"DefaultDNSTarget": {
"type": "string",
{
"AWSTemplateFormatVersion": "2010-09-09",
"Conditions": {
"CreateLogResources": {
"Fn::Equals": [
{
"Ref": "EnableCloudWatchLogs"
},
"yes"
]
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"outputs": {
"ConnectToThisCluster": {
"type": "string",
"value": "[concat('docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST dockercloud/client ', variables('DockerCloudClusterName'))]"
},
"DefaultDNSTarget": {
"type": "string",
{
"AWSTemplateFormatVersion": "2010-09-09",
"Conditions": {
"CreateLogResources": {
"Fn::Equals": [
{
"Ref": "EnableCloudWatchLogs"
},
"yes"
]
{
"AWSTemplateFormatVersion": "2010-09-09",
"Conditions": {
"CreateLogResources": {
"Fn::Equals": [
{
"Ref": "EnableCloudWatchLogs"
},
"yes"
]
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"outputs": {
"ConnectToThisCluster": {
"type": "string",
"value": "[concat('docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST dockercloud/client ', variables('DockerCloudClusterName'))]"
},
"DefaultDNSTarget": {
"type": "string",