Skip to content

Instantly share code, notes, and snippets.

# https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
# Install using the repository
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
# VirtualBox: Host<->Guest Networking
To simplify performing/testing automation on VirtualBox, we need to assign static IP Addresses to our VMs.
Create a Host Only network.
Virtual Box -> Preferences -> Network -> Host-only Networks
For this example, we will use `vboxnet0`
@darylyu
darylyu / jupyter_conda
Created October 28, 2015 03:27
Installing Jupyter notebooks through conda
wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda-2.3.0-Linux-x86_64.sh
bash Anaconda-2.3.0-Linux-x86_64.sh
rm Anaconda-2.3.0-Linux-x86_64.sh
conda update conda
conda update ipython pandas
conda install ipython-notebook
conda install --channel https://conda.anaconda.org/aterrel xgboost
@darylyu
darylyu / prime_generator.py
Last active August 29, 2015 14:04
It's a prime number generator. It's a naive implementation of the not-so-naive approach.
#!/usr/bin/env python
"""
USAGE: python prime_generator.py <ceiling>
This prints out the list of prime numbers from 1 to
the passed in ceiling.
Example: