Skip to content

Instantly share code, notes, and snippets.

Everett Toews etoews

Block or report user

Report or block etoews

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@etoews
etoews / JCloudsNeutron.java
Created Jan 30, 2014
Create, List, and Delete Networks in OpenStack Neutron with jclouds 1.7.0.
View JCloudsNeutron.java
import com.google.common.collect.ImmutableSet;
import com.google.common.io.Closeables;
import com.google.inject.Module;
import org.jclouds.ContextBuilder;
import org.jclouds.logging.slf4j.config.SLF4JLoggingModule;
import org.jclouds.openstack.neutron.v2_0.NeutronApi;
import org.jclouds.openstack.neutron.v2_0.domain.Network;
import org.jclouds.openstack.neutron.v2_0.domain.NetworkType;
import org.jclouds.openstack.neutron.v2_0.features.NetworkApi;
import org.jclouds.openstack.neutron.v2_0.options.CreateNetworkOptions;
@etoews
etoews / instructions.md
Last active Aug 29, 2015
Instructions to create a milestone-proposed DevStack
View instructions.md
@etoews
etoews / localrc
Created Apr 14, 2014
localrc for milestone-proposed DevStack
View localrc
# Credentials
ADMIN_PASSWORD=devstack
MYSQL_PASSWORD=devstack
RABBIT_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=token
# Services
disable_service n-net
enable_service q-svc
@etoews
etoews / localrc
Created Apr 18, 2014
localrc for OpenStack Icehouse DevStack with Compute, Object Storage, and Networking
View localrc
# Credentials
ADMIN_PASSWORD=devstack
MYSQL_PASSWORD=devstack
RABBIT_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=token
# Services
disable_service n-net
enable_service q-svc
View jclouds-site-pull-requests.sh
gem install jekyll -v '1.5.1' --no-rdoc --no-ri --conservative --user-install
gem install rdiscount --no-rdoc --no-ri --conservative --user-install
jekyll build --safe
# Save the GitHub PR number for the downstream build
curl -sO $BUILD_URL/consoleText
GITHUB_PR_NUMBER=$(head -1 consoleText | sed 's/.*pull request #\([0-9]*\) to.*/\1/')
echo "export GITHUB_PR_NUMBER=$GIT_PR_NUMBER" > $WORKSPACE/_site/triggering-build.rc
View jclouds-site-staging-1.sh
# Upload the jclouds site to a staging container for review by the user
#!/bin/bash
export RACKSPACE_USERNAME=my-rackspace-username
export RACKSPACE_APIKEY=my-rackspace-apikey
# Move the console log of the triggering build to prevent it from being uploaded
mv $WORKSPACE/_site/triggering-build.rc $WORKSPACE/triggering-build.rc
# Delete the release note text files only because they're too bulky to upload every time
View jclouds-site-staging-2.sh
# Comment on the pull request to let the user know where to go to review the jclouds site
#!/bin/bash
# Setup the env vars needed by the comment script
source $WORKSPACE/triggering-build.rc
export GITHUB_USERNAME=my-github-username
export GITHUB_PASSWORD=my-github-password
export GITHUB_PR_MESSAGE=$(cat $WORKSPACE/cdn-upload.log | grep "Go to")
export GITHUB_PR_MESSAGE+=" to review your changes."
export GITHUB_ORG='jclouds'
@etoews
etoews / local.conf
Created Jun 11, 2014
local.conf for TXLF 2014
View local.conf
[[local|localrc]]
# Credentials
DATABASE_PASSWORD=devstack
ADMIN_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=devstack
RABBIT_PASSWORD=devstack
# Services
@etoews
etoews / devstack-txlf.sh
Last active Aug 29, 2015
DevStack for TXLF 2014
View devstack-txlf.sh
# Login
ssh -i .ssh/id_rsa.rackspace root@my.ip.v4.address
# Install OpenStack Icehouse with DevStack
apt-get -y update
apt-get -y install curl git vim
git clone https://github.com/openstack-dev/devstack.git -b stable/icehouse devstack/
devstack/tools/create-stack-user.sh
su stack
cd
View Test.java
import com.google.common.collect.ImmutableSet;
import com.google.inject.Module;
import org.jclouds.ContextBuilder;
import org.jclouds.blobstore.BlobStore;
import org.jclouds.logging.slf4j.config.SLF4JLoggingModule;
import org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext;
import org.jclouds.rackspace.cloudfiles.v1.CloudFilesApi;
import java.io.IOException;
You can’t perform that action at this time.