Sketchy OAuth2 & Docker & SSH

I wrote this post for Environment Setup & Basic Knowledge for Data Science. (of course under Ubuntu16.04, but also other Debian systems should be OK)

For python, I’ve written a series of notes.爬虫学习笔记目录/数据分析与展示笔记目录/


Authorization Grant Types
Refer to

  • 授权码模式 Authorization Code
    • User-Agent applies for code
    • Client uses code to apply for token
  • 简化模式 Implicit
    • Client applies for token directly
  • 密码模式 Resource Owner Password Credentials
    • User tells Client password to apply for authorization.
  • 客户端模式 Client Credentials
    • Client applies for authorization in the name of itself.

Docker Base

I pull continuumio/anaconda3 and run conda install scrapy for my special container for data science.


  • docker pull + remote registry
  • docker images to list images
  • docker ps to list running containers
  • docker cp container_id:path local_path or docker cp local_path container_id:path to move files between host and container
  • docker run -it image /bin/bash run image as a container with bash
  • <CTRL-P-Q> to exit container without closing it
  • <CTRL-D> to exit and close a container
  • docker commit container_id image_name:tag to store container
  • docker rmi image to remove image
  • docker stop container_id to stop a container
  • docker rm $(docker ps -q -a) to remove all containers

SSH Base

Leave a Reply

Your email address will not be published.