Skip to content

Instantly share code, notes, and snippets.

View mirekphd's full-sized avatar

mirekphd

  • EU
View GitHub Profile
@mirekphd
mirekphd / nginx_deployment.yaml
Created October 26, 2019 19:33 — forked from petitviolet/nginx_deployment.yaml
sample Nginx configuration on Kubernetes using ConfigMap to configure nginx.
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data:
nginx.conf: |
user nginx;
worker_processes 3;
error_log /var/log/nginx/error.log;
events {
import numpy as np
import torch
import torch.optim as optim
from ray import tune
from ray.tune.examples.mnist_pytorch import get_data_loaders, train, test
import ray
import sys
if len(sys.argv) > 1:
@mirekphd
mirekphd / _0__ssl_certbot_letsencrypt.md
Created April 18, 2021 17:37 — forked from maxivak/_0__ssl_certbot_letsencrypt.md
Let's encrypt SSL certificates using certbot in docker

Directories on host machine:

  • /data/certbot/letsencrypt

  • /data/certbot/www

  • Nginx server in docker container

docker run -d --name nginx \