## 23rd January 2017
At the time of writing, the pip install of toree is not compatible with spark 2.x. We need to use the master branch from git.
sudo apt install openjdk-8-jdk-headless
# | |
# Name: nginx-tls.conf | |
# Auth: Gavin Lloyd <gavinhungry@gmail.com> | |
# Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating | |
# | |
# Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related | |
# to SSL/TLS are not included here. | |
# | |
# Additional tips: | |
# |
package main | |
import ( | |
"fmt" | |
"github.com/gorilla/mux" | |
"net/http" | |
) | |
func main() { | |
r := mux.NewRouter() |
from flask import Flask | |
from flask import render_template | |
from flask import request | |
from flask import jsonify | |
import json | |
# This class tells Python how to turn a Delivery object into a JSON string. | |
# This class could encode various types of objects - use isinstance to check what type of thing it is, and return the appropriate JSON | |
# https://docs.python.org/3/library/json.html |
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj | |
Cloning into 'my-awesome-proj'... | |
ssh: connect to host github.com port 22: Connection timed out | |
fatal: Could not read from remote repository. | |
$ # This should also timeout | |
$ ssh -T git@github.com | |
ssh: connect to host github.com port 22: Connection timed out | |
$ # but this might work |
Docker Desktop stores docker data in 2 distros
These distros are installed on the system drive by default.
To move them to another drive, these distros can be exported, deleted and imported from the new location.