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
@ken-zheng
ken-zheng / How to make a dual-boot system on MAC.md
Last active October 25, 2025 17:17
How to make a dual-boot system on MAC

Create a bootable USB stick on macOS | Ubuntu

I understand your goal is to create a bootable Ubuntu USB drive on macOS that also includes a shared storage partition accessible by both macOS and Linux. While macOS doesn't natively support creating a bootable USB with multiple partitions, there is a validated method to achieve this using balenaEtcher and GParted.


✅ Step-by-Step Guide

1. Create a Bootable Ubuntu USB with balenaEtcher

#!/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 \