Skip to content

Instantly share code, notes, and snippets.

@zebreus
zebreus / style-enforcer.sh
Last active January 12, 2024 20:43
Bash pre-commit hook for the incremental adoption of code-formatting in large software projects
#!/usr/bin/env bash
# # Overview
# The goal of the enforce-style script is to make sure that submitters run clang-format before submitting a patch. It does not enforce styling for existing manually formatted files, but will enforce that NEW/MANAGED files that are staged when committing are formatted with clang-format. This way we can incrementally adopt clang-format.
#
# # Managed files
# Managed files are those whose styling is managed by this script. This means that the styling is enforced for these files. A precommit-hook will automatically format these files and stage the result. Gerrit will also automatically format these files and stage the result.
#
# # Incremental adoption
# This script is designed for incremental adoption of styling. It achieves this by differentiating between managed (styling enforced) and ignored (styling not enforced) files. Initially all existing files were added to the list of ignored files. When a staged file matches the clang-format style, it is automatically removed from the
@zebreus
zebreus / Readme.md
Last active March 10, 2024 15:50
High quality TianoCore logo (and a coreboot version)

Tianocore splashscreen

A high quality SVG version of the tianocore splashscreen. This is a recreation as I was not able to find a version of the splashscreen bigger than 172x58 pixels.

Tianocore splashscreen

This repo also contains a coreboot version of the splashscreen.

coreboot splashscreen

openpgp4fpr:2D53CFEA1AB4017BB327AFE310A46CC3152D49C5

From 6b06994c972693e0ebf1e402179724245dd94d06 Mon Sep 17 00:00:00 2001
From: Zebreus <[email protected]>
Date: Thu, 12 Dec 2024 03:11:23 +0100
Subject: [PATCH] Add serialcaixianlin support
---
src/timer/timer_game_calendar.cpp | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/src/timer/timer_game_calendar.cpp b/src/timer/timer_game_calendar.cpp