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
Dockerfile: | |
=============== | |
FROM ubuntu | |
MAINTAINER bkreider | |
ADD return1.sh /root/return1.sh | |
ADD return0.sh /root/return0.sh | |
CMD ["/root/return1.sh"] | |
================= |
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
""" | |
Need to run `ping google.com >> /tmp/google.txt` in another terminal. | |
""" | |
import re | |
from bokeh.plotting import * | |
from bokeh.plotting import line | |
from bokeh.objects import GlyphRenderer | |
MAX_HISTORY = 1000 | |
output_server("ping") |
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 ssl | |
import boto | |
import socket | |
GOOD_CERT="/opt/anaconda/lib/python2.7/site-packages/requests/cacert.pem" | |
BAD_CERT="/opt/anaconda/lib/python2.7/site-packages/boto/cacerts/cacerts.txt" | |
HOST="ec2.us-west-1.amazonaws.com" | |
PORT=443 |
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
"""A notebook manager that uses S3 storage. (based on the Azure manager) | |
http://ipython.org/ipython-doc/dev/interactive/htmlnotebook.html#using-a-different-notebook-store | |
Drop this file in IPython/frontend/html/notebook | |
1. Create a new notebook profile - ipython profile create nbserver | |
2. edit ~/.ipython/profile_nbserver/ipython_notebook_config.py | |
3. Add these lines: | |
c.NotebookApp.notebook_manager_class = 'IPython.frontend.html.notebook.s3nbmanager.S3NotebookManager' |
NewerOlder