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
INFO global: Vagrant version: 1.7.2 | |
INFO global: Ruby version: 2.0.0 | |
INFO global: RubyGems version: 2.0.14 | |
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.2/bin/vagrant" | |
INFO global: VAGRANT_LOG="debug" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded" | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_DETECTED_OS="Linux" | |
INFO global: VAGRANT_INSTALLER_ENV="1" | |
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1" |
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 ( | |
"testing" | |
"github.com/jarcoal/httpmock" | |
"net/http" | |
"io/ioutil" | |
) | |
type Call struct { | |
req *http.Request |
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 ( | |
"net/http" | |
"github.com/jarcoal/httpmock" | |
) | |
func NewChainResponder(responders []httpmock.Responder) httpmock.Responder { | |
cursor := 0 | |
return func(req *http.Request) (*http.Response, error) { |
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 | |
apt-get update -y | |
apt-get dist-upgrade -y |
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
func orderHourlyBM(sess *session.Session) { | |
hwservice := services.GetHardwareService(sess) | |
//hwservice.GetCreateObjectOptions() | |
template := datatypes.Hardware{} | |
template.Datacenter = &datatypes.Location{Name: sl.String("dal01")} | |
template.Hostname = sl.String("mike-bm-test") | |
template.Domain = sl.String("softlayer.com") | |
template.HourlyBillingFlag = sl.Bool(true) | |
template.NetworkComponents = []datatypes.Network_Component{{MaxSpeed: sl.Int(1000)}} |
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/python | |
'''Sample: Upload a file to cleversafe''' | |
import boto3 | |
# Create an s3 resource object, pointing to Cleversafe's public "s3" endpoint | |
s3 = boto3.resource('s3', endpoint_url='https://s3-api.us-geo.objectstorage.softlayer.net') | |
# The above reads credentials from environment variables, or ~/.aws/credentials file | |
# Alternatively, you can provide credentials with the following kwargs: |