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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 | |
exec > >(tee -a "/tmp/display-switcher.log") 2>&1 | |
# NOTE: This requires GNU getopt. On Mac OS X and FreeBSD, you have to install this | |
# separately; see below. | |
usage() { | |
cat << HELP >&2 | |
Usage: $0 [option ...] {profile} |
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
#!/bin/bash | |
echo "Getting list of Availability Zones" | |
all_regions=$(aws ec2 describe-regions --output text --query 'Regions[*].[RegionName]' | sort) | |
all_az=() | |
while read -r region; do | |
az_per_region=$(aws ec2 describe-availability-zones --region $region --query 'AvailabilityZones[*].[ZoneName]' --output text | sort) | |
while read -r az; do |
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
=== BEGIN goroutine stack dump === | |
goroutine 10 [running]: | |
github.com/docker/docker/pkg/signal.DumpStacks() | |
/usr/src/docker/.gopath/src/github.com/docker/docker/pkg/signal/trap.go:67 +0x98 | |
github.com/docker/docker/daemon.setupDumpStackTrap.func1(0xc82001a3c0) | |
/usr/src/docker/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:18 +0x5e | |
created by github.com/docker/docker/daemon.setupDumpStackTrap | |
/usr/src/docker/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:20 +0x12a | |
goroutine 1 [chan receive, 148194 minutes]: |
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
import ( | |
"fmt" | |
"os" | |
"time" | |
rancher "github.com/rancher/go-rancher/v2" | |
log "github.com/sirupsen/logrus" | |
) | |
func createClient(rancherURL, accessKey, secretKey string) *rancher.RancherClient { |
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
#!/bin/bash | |
for i in "$@" | |
do | |
case $i in | |
-f=*|--file=*) | |
FILENAME="${i#*=}" | |
;; | |
-o=*|--out=*) | |
OUTPUT="${i#*=}" |