Skip to content

Instantly share code, notes, and snippets.

View aherok's full-sized avatar

Andrzej Herok aherok

View GitHub Profile
@aherok
aherok / app.py
Created March 4, 2020 11:26
Starlette + Ariadne handling sessions test
"""
Required to install:
* starlette
* ariadne
* uvicorn
run via `uvicorn app:app`
"""
import logging
from dataclasses import dataclass
@aherok
aherok / Dockerfile
Last active May 9, 2020 12:46
Puppetteer screenshooter PoC
# https://github.com/buildkite/docker-puppeteer/blob/master/Dockerfile
FROM node:12.16.3-slim
RUN apt-get update \
&& apt-get install -y wget gnupg ca-certificates \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
# Install Chrome to get all the dependencies just to keep deps up to date