Skip to content

Instantly share code, notes, and snippets.

@toancong
toancong / API.md
Created May 14, 2021 08:11 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

[Unit]
Description=Jupyter Notebook
[Service]
PIDFile=/run/jupyter.pid
ExecStart=/usr/local/bin/jupyter notebook --ip=0.0.0.0 --allow-root --notebook-dir /home/ai/Documents
User=ai
Group=ai
WorkingDirectory=/home/ai/Documents
Restart=always
@toancong
toancong / install-python.sh
Created March 12, 2018 02:36
Install python 3.6.4
#!/bin/bash
export PYTHON_VERSION=3.6.4
export PYTHON_DOWNLOAD_URL=https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tgz
sudo apt update
sudo apt install --no-install-recommends -y \
gcc libssl-dev \
python python-dev
cd ~/Downloads