Skip to content

Instantly share code, notes, and snippets.

View ken-zheng's full-sized avatar
💭
I may be slow to respond.

Ken Zheng ken-zheng

💭
I may be slow to respond.
  • Toronto, Canada
View GitHub Profile
#!/usr/bin/env python3
import os
import argparse
from pikepdf import Pdf
def main(args):
opdf = Pdf.open(args.odd)
epdf = Pdf.open(args.even)
mpdf = Pdf.new()
@ken-zheng
ken-zheng / Dockerfile
Last active October 11, 2019 19:07
Hyperkube image build with RHEL7 minimal
# syntax = docker/dockerfile:experimental
FROM BASEIMAGE
# Copy the hyperkube binary
COPY hyperkube /hyperkube
RUN --mount=type=bind,source=secrets,target=/run/secrets \
ln -s /hyperkube /apiserver \
&& ln -s /hyperkube /cloud-controller-manager \
&& ln -s /hyperkube /controller-manager \