Skip to content

Instantly share code, notes, and snippets.

@benthetechguy
benthetechguy / chrp.cpp
Last active October 3, 2024 20:25
Generate a CHRP script with custom icon to dual boot with Linux on PowerPC Macs
/*
chrp.cpp - Generate a CHRP script to dual boot with Linux on PowerPC Macs
Copyright (C) 2024 Ben Westover <me@benthetechguy.net>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
# Quick and dirty script to turn a 16x16 image into 8-bit color values.
# Made to create icons for use in a CHRP script. Debian logo example:
# 0000000000C1C1C1C5C1C5EE00000000
# 00000000C1C1C1C1C1C1C1C1C1000000
# 000000C1C1C1C1000000C5C1C1C10000
# 0000C1C1C1C10000000000C1C1C10000
# 0000C5C1C10000C1C1C1C100C1C10000
# 0000C1C1000000C50000C900C1C50000
# 0000C1C50000C1C10000C500C1C10000
# 0000C1000000C1C10000C900C1C50000
@benthetechguy
benthetechguy / roku.py
Created June 28, 2022 05:16
Roku remote script
# Copyright (C) 2022 Ben Westover
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the