Skip to content

Instantly share code, notes, and snippets.

@ZipFile
ZipFile / Dockerfile
Created August 4, 2018 20:39
Multistage build with private repo on GitHub. Python/Django app.
FROM ubuntu:bionic as build-base
ENV PYTHONUNBUFFERED 1
ARG SSH_KEY
RUN apt-get update && \
apt-get install -y build-essential \
libprotobuf-dev \
libhiredis-dev \
libxml2-dev \
@ZipFile
ZipFile / python_descriptor_cheat_sheet.py
Last active June 13, 2018 05:39
Python descriptor cheat sheet
class StaticMethod:
def __init__(self, f):
self.f = f
def __get__(self, obj, cls=None):
return self.f
class ClassMethod:
def __init__(self, f):
@ZipFile
ZipFile / Pixiv App API.yaml
Last active April 28, 2023 01:31
Unofficial API specification extracted from Pixiv Android App
swagger: '2.0'
info:
title: "Pixiv App API"
description: "Unofficial API specification extracted from Pixiv Android App v5.0.17"
version: "1.0"
host: app-api.pixiv.net
schemes:
- https
@ZipFile
ZipFile / Pixiv Public API.yaml
Last active August 7, 2022 14:11
Unofficial API specification extracted from Pixiv Android App
swagger: "2.0"
info:
title: "Pixiv Public API"
description: "Unofficial API specification extracted from Pixiv Android App v4.8.2"
version: "1.0"
host: public-api.secure.pixiv.net
schemes:
- https
basePath: /v1
produces: