Build starting from a Jupyter 2.x image.
docker build -t jupyterlab .
| # Description: How to assign VPC addresses to Docker containers associated as secondary IP addresses to an ENI in AWS | |
| # Operating System: Amazon Linux AMI 2016.09.1 (HVM) | |
| # Prerequisites: | |
| # - Assign N number of secondary IP addresses to network interface on Docker host | |
| # - Each new container requires additional assignment of secondary IP addresses | |
| # - Containers can be launched with --net=none to avoid adding a Docker networked NIC (docker run --net=none -d imageId) | |
| # Credit to https://github.com/jpetazzo/pipework for steps on linking IP address | |
| ################# Setup Bridge of eth0 ###################### | |
| yum install bridge-utils -y |
The following is from scotthelme.co.uk
with Content Security Policy (CSP) enabled(and a browser that supports it(http://caniuse.com/#feat=contentsecuritypolicy), you can tell the browser that it can only download content from the domains you explicitly allow http://www.html5rocks.com/en/tutorials/security/content-security-policy/ https://www.owasp.org/index.php/Content_Security_Policy I need to change our application code so we can increase security by disabling 'unsafe-inline' 'unsafe-eval'
| #!/usr/bin/env python | |
| #encoding: utf-8 | |
| import urllib2 | |
| import re | |
| from base64 import b64decode | |
| LIST_URL = 'https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt' | |
| DECODE_FILE = 'decode.txt' | |
| BLACK_FILE = 'gfw.url_regex.lst' |
| # -*- coding:utf-8 -*- | |
| class LoupQuery(Query): | |
| pass | |
| db_session = scoped_session( | |
| sessionmaker( | |
| autocommit=False, | |
| autoflush=False, |
| import wx | |
| #from wx.lib.pubsub.core import Publisher #If you want to manage your own publisher use this | |
| from wx.lib.pubsub import pub | |
| import threading | |
| class ParcelData(object): | |
| def __init__(self,count,current,message): | |
| self.parcel_count = count | |
| self.current_parcel = current | |
| self.message = message |
| package log | |
| import ( | |
| "fmt" | |
| "github.com/Sirupsen/logrus" | |
| "runtime" | |
| "strings" | |
| ) | |
| var logger = logrus.New() |