Initial commit

This commit is contained in:
Pavle Portic 2020-06-02 17:12:09 +02:00
commit 0b407351fb
Signed by: TheEdgeOfRage
GPG Key ID: 6758ACE46AA2A849
8 changed files with 187 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_build

19
Makefile Normal file
View File

@ -0,0 +1,19 @@
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = .
BUILDDIR = _build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

BIN
_static/architecture.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

BIN
_static/corbusier.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
_static/empty_racks.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

90
conf.py Normal file
View File

@ -0,0 +1,90 @@
# -*- coding: utf-8 -*-
# -- Path setup --------------------------------------------------------------
import os
# -- Project information -----------------------------------------------------
project = "sphinx-revealjs"
copyright = "2018, Kazuya Takei"
author = "Kazuya Takei"
version = ""
release = "2018.10"
# -- General configuration ---------------------------------------------------
extensions = ["sphinx_revealjs", "sphinxcontrib.gtagjs"]
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
language = None
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
pygments_style = None
# -- Options for HTML output -------------------------------------------------
html_theme = "alabaster"
html_theme_options = {
"revealjs_theme": "league",
}
html_static_path = ["_static"]
# -- Options for Reveal.js output ---------------------------------------------
revealjs_style_theme = "black"
revealjs_script_conf = """
{
controls: true,
progress: true,
history: true,
center: true,
transition: "slide",
}
"""
revealjs_script_plugins = [
{
"src": "revealjs/plugin/notes/notes.js",
"options": "{async: true}",
},
{
"src": "revealjs/plugin/highlight/highlight.js",
"options": "{async: true, callback: function() { hljs.initHighlightingOnLoad(); }}",
},
]
# -- Options for HTMLHelp output ---------------------------------------------
htmlhelp_basename = "sphinx-revealjsdoc"
# -- Options for LaTeX output ------------------------------------------------
latex_elements = {}
latex_documents = [
(
master_doc,
"sphinx-revealjs.tex",
"sphinx-revealjs Documentation",
"Kazuya Takei",
"manual",
),
]
# -- Options for manual page output ------------------------------------------
man_pages = [
(master_doc, "sphinx-revealjs", "sphinx-revealjs Documentation", [author], 1)
]
# -- Options for Texinfo output ----------------------------------------------
texinfo_documents = [
(
master_doc,
"sphinx-revealjs",
"sphinx-revealjs Documentation",
author,
"sphinx-revealjs",
"One line description of project.",
"Miscellaneous",
),
]
# -- Options for Epub output -------------------------------------------------
epub_title = project
epub_exclude_files = ["search.html"]
# -- Options for extensions --------------------------------------------------
if "GTAGJS_IDS" in os.environ:
gtagjs_ids = os.environ["GTAGJS_IDS"].split(",")

55
index.rst Normal file
View File

@ -0,0 +1,55 @@
=====================================
Serverless real time video processing
=====================================
Powered by the Cloud, AI, events, and other buzzwords
The Serverless hype
===================
What does serverless mean?
--------------------------
.. figure:: _static/empty_racks.jpg
AWS Compute startup times
-------------------------
.. Speaker note
.. revealjs_fragments::
* EC2 - minutes
* Fargate - seconds
* Lambda - milliseconds (when warm and cozy)
* https://firecracker-microvm.github.io/
Lambda lifecycle
----------------
.. code-block:: python
print('initialized')
def handler(event, context):
print('executed')
return {
'message': 'done'
}
Edifice Corb
============
.. figure:: _static/corbusier.jpg
* Named after some weird French dude
* Real time person detection
* User interface through SMS
Architecture
------------
.. image:: _static/architecture.png
:width: 80%

22
watch.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash -eu
DIRECTORY_TO_OBSERVE="."
function block_for_change {
inotifywait --recursive \
--event modify,move,create,delete \
--exclude "_build.+"\
$DIRECTORY_TO_OBSERVE >/dev/null 2>&1
echo -n ""
}
function build {
clear
make revealjs
}
build
while block_for_change; do
build
done