View _kubernetes_in_docker
Run `start-kubernetes` to create the Kubernetes docker container.
Install kubectl and run `kubectl --server=http://localhost:8080 cluster-info` to see useful URLs.
Delete everything by running `remove-kubernetes`.
View gist:aaa45d00b74baa4c4e85
#!/bin/bash
set -o nounset -o errexit
echo ""
echo "Downloading scala-notebook"
echo "--------------------------"
cd /tmp
wget -q https://github.com/chrismyang/scala-notebook/releases/download/0.1-SNAPSHOT/notebook-server-assembly-0.1-SNAPSHOT.jar
echo ""
View freeze-output.txt
BeautifulSoup==3.2.1
Jinja2==2.7.3
Mako==0.9.1
MarkupSafe==0.18
PAM==0.4.2
Pillow==2.3.0
Pygments==1.6
Twisted-Core==13.2.0
Twisted-Names==13.2.0
Twisted-Web==13.2.0
View test3.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Gruntfile.js
imagemin: {
dist: {
files: [{
expand: true,
cwd: '<%= yeoman.app %>/images',
src: '{,*/}*.{gif,jpeg,jpg,png}',
dest: '<%= yeoman.dist %>/images'
}, {
expand : true,
flatten : true,
View gist:6298651
INSTALL: Installing server software
INSTALL: sudo apt-get update
INSTALL: sudo apt-get upgrade -qq
INSTALL: sudo apt-get install build-essential libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev python-software-properties unzip git-core libcurl4-openssl-dev libbz2-dev libmysqlclient-dev mongodb-clients libreadline6-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev libgdbm-dev ncurses-dev automake libffi-dev htop libtool bison libevent-dev libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 liborc-0.4-0 libwxbase2.8-0 libwxgtk2.8-0 libgnutls-dev libjson0-dev libmcrypt-dev libicu-dev cmake gettext curl libpq-dev mercurial -qq
INSTALL: sudo DEBIAN_FRONTEND=noninteractive add-apt-repository ppa:ubuntu-toolchain-r/test
INSTALL: sudo apt-get update
INSTALL: sudo apt-get install gcc-4.8 g++-4.8 -qq
INSTALL: cp ../config/benchmark_profile ../../.bash_profile
INSTALL: sudo sh -c "echo '* - nofile 16384' >> /etc/security/limits.conf"
INSTALL: sudo apt-get install maven -qq
View WorkerRole.cs
using System;
using System.Net;
using System.Threading;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.ServiceRuntime;
using Microsoft.WindowsAzure.StorageClient;
namespace WorkerRole1
{
public class WorkerRole : RoleEntryPoint
View gist:4240367
public void Write(TableServiceEntity entity)
{
TableServiceContext context = _tableClient.GetDataServiceContext();
context.AddObject(_tableName, entity);
context.BeginSaveChangesWithRetries((asyncResult => context.EndSaveChangesWithRetries(asyncResult)), null);
}