| Title | Description
This file contains hidden or 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 python | |
import os | |
import sys | |
import urllib2 | |
import json | |
import hashlib | |
import zlib | |
from optparse import OptionParser |
This file contains hidden or 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
euare-accountcreate -a ui-test-acct-00 | |
euare-useraddloginprofile --delegate ui-test-acct-00 -u admin -p mypassword0 | |
euare-useraddkey --delegate ui-test-acct-00 -u admin | |
euare-usercreate --delegate ui-test-acct-00 -u user00 | |
euare-useraddloginprofile --delegate ui-test-acct-00 -u user00 -p mypassword1 | |
euare-useraddkey --delegate ui-test-acct-00 -u user00 | |
euare-accountcreate -a ui-test-acct-01 | |
euare-useraddloginprofile --delegate ui-test-acct-01 -u admin -p mypassword2 | |
euare-useraddkey --delegate ui-test-acct-01 -u admin | |
euare-usercreate --delegate ui-test-acct-01 -u user00 |
This file contains hidden or 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 | |
export PASSWORD=yourpassword | |
export HOSTNAME='scalr' | |
export DOMAIN='.local' | |
export SCALR_BASE=/usr/local/scalr | |
export SCALR_HOME=$SCALR_BASE/scalr-home | |
export SCALR_FILES=$SCALR_BASE/scalr-files | |
export CURRENT=$SCALR_BASE/current |
This file contains hidden or 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
attach_volume () { | |
volId=$1 | |
grep vd[a-z]$ /proc/partitions | awk "{print \$4;}" > /tmp/before | |
sleep 2 | |
# attach the volume | |
echo "Attaching $volId to $instanceId" | |
euca-attach-volume -i $instanceId $volId -d /dev/vdc |
This file contains hidden or 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 | |
# set -x | |
get_next_multiplier() { | |
current_multiplier=$1 | |
multiplier=$(( ${current_multiplier} * 2 )) | |
} | |
set_variables() { |
This file contains hidden or 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 | |
# set -x | |
# DEBUG='echo' | |
device=$1 | |
[ ! -f "${device}" ] && exit 1 | |
output_dir=$( echo "${device}" | sed 's/.img//g' ) | |
[ -d "${output_dir}" ] && exit 1 | |
mkdir -p "${output_dir}" |