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
#!/usr/bin/env python | |
import os | |
import sys | |
import urllib2 | |
import json | |
import hashlib | |
import zlib | |
from optparse import OptionParser |
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
/* | |
* Conway's "Life" | |
* | |
* Adapted from the Life example | |
* on the Processing.org site | |
* | |
* Written by David Kavanagh ([email protected]). | |
*/ | |
#include "SPI.h" | |
#include "Adafruit_WS2801.h" |
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
echo "{ \"Statement\": [ { \"Effect\": \"Allow\", \"Action\": \"*\", \"Resource\": \"*\" } ] }" >all.policy | |
k=0 | |
ADMIN=`cat .euca/euca-admin.ini |grep "^user" |awk '{ print $3; }'` | |
HOST=`cat .euca/euca-admin.ini |grep "^default-region" |awk '{ print $3; }'` | |
REGION=$ADMIN@$HOST | |
for i in ui-test-acct-00 ui-test-acct-01 ui-test-acct-02 ui-test-acct-03 | |
do | |
echo "creating users for "$i | |
euare-accountcreate --region $REGION -a $i | |
euare-useraddloginprofile --region $REGION --as-account $i -u admin -p mypassword$k |
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
git submodule foreach git checkout $1 | |
git submodule foreach git pull origin $1 | |
git checkout $1 | |
git pull origin $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
branch=`git rev-parse --abbrev-ref HEAD` | |
if [ "$branch" = "master" ] || [ "$branch" = "maint-4.1" ] | |
then | |
echo "Pushing to "$branch" is no bueno." | |
exit -1 | |
fi | |
echo "pushing to "$branch | |
git submodule foreach git push origin $branch | |
git push origin $branch |
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
def start_redirector(kwargs, callback): | |
# can't use tornado for this (not threadsafe). Must use something else, something simpler! | |
http_port = 8888 | |
if eucaconsole.config.has_option('server', 'http.port'): | |
http_port = eucaconsole.config.getint('server', 'http.port') | |
server = BaseHTTPServer.HTTPServer(('localhost', http_port), | |
lambda *args: RedirectHandler(kwargs, *args)) | |
server.serve_forever() | |
class RedirectHandler(BaseHTTPRequestHandler): |
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
branch=`git rev-parse --abbrev-ref HEAD` | |
echo "pulling from "$branch | |
git submodule foreach git pull origin $branch | |
git pull origin $branch |
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
#cloud-config | |
# vim: syntax=yaml | |
# | |
# This config installs the eucalyptus and epel repos, then installs and | |
# configures the eucaconsole package | |
runcmd: | |
- [ yum, -y, install, "http://downloads.eucalyptus.com/software/eucalyptus/nightly/4.0/centos/6/x86_64/eucalyptus-release-4.0-0.1.el6.noarch.rpm" ] | |
- [ yum, -y, install, eucaconsole ] | |
- [ sed, -i, "s/localhost/10.111.5.78/", /etc/eucaconsole/console.ini ] |
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
#cloud-config | |
# vim: syntax=yaml | |
# | |
# This config installs the eucalyptus and epel repos, then installs and | |
# configures the eucaconsole package | |
runcmd: | |
- [ yum, -y, install, "http://downloads.eucalyptus.com/software/eucalyptus/nightly/4.0/centos/6/x86_64/eucalyptus-release-4.0-0.1.el6.noarch.rpm" ] | |
- [ yum, -y, install, eucaconsole ] | |
- [ sed, -i, "s/localhost/10.111.5.78/", /etc/eucaconsole/console.ini ] |
OlderNewer