Skip to content

Instantly share code, notes, and snippets.

View luojia65's full-sized avatar
🐱
Katoj!

Luo Jia / Zhouqi Jiang luojia65

🐱
Katoj!
View GitHub Profile
@orangecms
orangecms / build-u-root.sh
Last active January 1, 2023 13:41
try oreboot on Allwinner D1 (Nezha and Lichee RV)
#!/bin/sh
set -e
_NAME=u-root-nezha
_DIR=/tmp/$_NAME
_FLAGS=-build=bb
# Get u-root, module workaround is necessary as of now
# see also https://github.com/u-root/u-root#warning-go-modules-are-a-work-in-progress-warning
@andelf
andelf / font.py
Created January 16, 2021 05:32
CJK Font for Rust embedded-graphics
from PIL import Image, ImageDraw, ImageFont
import PIL.features
# ! brew install libraqm
print('libraqm:', PIL.features.check('raqm'))
size = (320, 16)
"""
FORMAT = "RGB"