Skip to content

Instantly share code, notes, and snippets.

View magicpotion's full-sized avatar

Krystian magicpotion

View GitHub Profile
@hermanbanken
hermanbanken / Dockerfile
Last active June 9, 2024 22:18
Compiling NGINX module as dynamic module for use in docker
FROM nginx:alpine AS builder
# nginx:alpine contains NGINX_VERSION environment variable, like so:
# ENV NGINX_VERSION 1.15.0
# Our NCHAN version
ENV NCHAN_VERSION 1.1.15
# Download sources
RUN wget "http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -O nginx.tar.gz && \
@mivade
mivade / #tornado-websocket-pubsub.rst
Last active July 5, 2019 05:48
Using Tornado websockets for the publish/subscribe pattern