Skip to content

Instantly share code, notes, and snippets.

View mirekphd's full-sized avatar


  • EU
View GitHub Profile
mirekphd /
Created April 18, 2021 17:37 — forked from maxivak/
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 \
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 / 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
name: nginx-conf
nginx.conf: |
user nginx;
worker_processes 3;
error_log /var/log/nginx/error.log;
events {