From 784926e1115ab47dc1bccad202eb694c76c2ca71 Mon Sep 17 00:00:00 2001 From: Hladu357 Date: Fri, 18 Oct 2024 18:42:33 +0200 Subject: [PATCH] initial setup --- .gitignore | 1 + Dockerfile | 7 +++++++ README.md | 14 ++++++++++++++ ukol.ipynb | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 ukol.ipynb diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..763513e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.ipynb_checkpoints diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9597a93 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.10-slim + +RUN pip install --upgrade pip \ + && pip install jupyter notebook + +CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--allow-root", "--no-browser"] + diff --git a/README.md b/README.md new file mode 100644 index 0000000..5a2533b --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# how to run +## build +podman build -t pst -f Dockerfile +or +docker build -t pst -f Dockerfile + +## run +pacman -S slirp4netns && podman run --network=slirp4netns -p 8888:8888 pst +or +docker run -p 8888:8888 pst + +K = 28 +L = 8 +M = ((K+L)*47)%11+1 = 10 \ No newline at end of file diff --git a/ukol.ipynb b/ukol.ipynb new file mode 100644 index 0000000..4844cdf --- /dev/null +++ b/ukol.ipynb @@ -0,0 +1,33 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "7c90184c-5f76-4277-b0ad-aeec2ac37d30", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.15" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +}