Skip to content

Instantly share code, notes, and snippets.

View yuezhu's full-sized avatar

Yue Zhu yuezhu

  • Boston, Massachusetts
View GitHub Profile
@yuezhu
yuezhu / gist:25e2e43c602a4aa2d1b897bbc47cb0cc
Last active December 6, 2024 10:53
Build Ceph radosgw using Centos 7 container
mkdir -p /root/build
docker run --name centos --hostname centos -it -v /root/build:/root/build centos:7 /bin/bash
# inside centos container
yum install -y epel-release
yum install -y git jq wget cmake3 make gcc-c++ rpm-build rpmdevtools
yum install -y centos-release-scl
yum install -y devtoolset-8
scl enable devtoolset-8 bash
cd /root/build
@yuezhu
yuezhu / pq.py
Last active July 7, 2025 19:22
skyline.py
class PriorityQueue:
@dataclass(order=True)
class _PrioritizedItem:
sort_order: int
priority: int
item: Any = field(compare=False)
def __init__(self):
self.pq = []