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 / config.toml
Last active Mar 28, 2016
Rough script for getting started with Interlock development. https://github.com/ehazlett/interlock
View config.toml
ListenAddr = ":8080"
DockerURL = "tcp://192.168.99.105:3376"
TLSCACert = "/etc/docker/ca.pem"
TLSCert = "/etc/docker/server.pem"
TLSKey = "/etc/docker/server-key.pem"
AllowInsecure = false
EnableMetrics = true
[[extensions]]
name = "nginx"
View swarm.sh
docker-machine create -d virtualbox swarm-keystore
eval "$(docker-machine env swarm-keystore)"
docker run -d \
-p "8500:8500" \
-h "consul" \
progrium/consul -server -bootstrap
docker-machine create \
-d virtualbox \
@etoews
etoews / jupyterhub-on-swarm.md
Last active Apr 22, 2016
Deploy an interactive data science environment with JupyterHub on Docker Swarm
View jupyterhub-on-swarm.md

Title

Deploy an interactive data science environment with JupyterHub on Docker Swarm

Description

Deploy an interactive data science environment and share documents that contain live code by taking advantage of Docker and Docker Swarm to deploy Jupyter Notebook servers with JupyterHub.

Abstract

@etoews
etoews / carina.md
Last active Dec 16, 2015
Docker Swarm on Carina demo at the The 12 Clouds of Christmas 2015 edition of the Cloud Austin meetup
@etoews
etoews / osa-liberty.md
Last active Apr 27, 2016
These are rough notes. There's a good chance it doesn't work as written. Needs some love.
View osa-liberty.md

Manual creation of OpenStack Ansible deployment for client testing

  1. https://mycloud.rackspace.com
  2. Create Server
  3. Server Name: osa-libery
  4. Region: IAD
  5. Image: Ubuntu 14.04 (Trusty Tahr) (PVHVM)
  6. Flavor: I/O > 15 GB I/O v1
  7. Advanced Options
  8. Manage SSH Keys (create a keypair for it)
View 1_setup.sh
export OS_USERNAME=your-rackspace-username
export OS_PASSWORD=your-rackspace-password
mkdir openstack-sdk
cd openstack-sdk/
virtualenv -p python3 --no-site-packages venv
source venv/bin/activate
pip3 install openstacksdk
python3
@etoews
etoews / secure-ubuntu-server.sh
Created Feb 2, 2015
Disclaimer: This is not the most secure configuration possible. This script is only intended to be more secure than the default configuration. No promises are made about this script preventing your server from getting hacked or your bike getting stolen. The bad guys are still out to get you. And running this script does not excuse you from writi…
View secure-ubuntu-server.sh
#!/bin/bash
set -o errexit
# This script assumes you're running it initially as root and you've created it with a key pair. If you
# haven't, you'll be locked out of your server.
if [ -z "$1" ]; then
echo "Usage: $0 NON_ROOT_USER"
echo "Example: $0 foo"
View ImageApiMockTest.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
View juno.local.conf
[[local|localrc]]
# Credentials
DATABASE_PASSWORD=devstack
ADMIN_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=devstack
RABBIT_PASSWORD=devstack
# Services
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.