Skip to content

Instantly share code, notes, and snippets.

openpgp4fpr:2D53CFEA1AB4017BB327AFE310A46CC3152D49C5

@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

@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 June 28, 2023 19:26
Really hacky workaround for highlightjs in asciidoctor-web-pdf / paged.js

Really hacky script for fixing listings with highlightjs in asciidoctor-web-pdf / paged.js

Add this script as docinfo-footer-pdf.html to your project and add the following to the top of your asciidoc file:

ifdef::env-web-pdf[]
:docinfo: shared-footer
endif::env-web-pdf[]
@zebreus
zebreus / Readme.md
Last active November 15, 2022 22:46

A list of bakeries in germany

Scraped on 15.11.2022 from https://www.innungsbaecker.de

Contains 21905 bakeries

Extract a newer list

To use the script clone this into a folder and run

@zebreus
zebreus / Readme.md
Last active November 15, 2022 23:25
csv list of bookstores in germany

A list of bookstores in germany

Scraped on 15.11.2022 from https://www.buchhandlung-finden.de , they probably got their data from somewhere else

Extract a newer list

To use the script clone this into a folder and run

npm install
npm run download
@zebreus
zebreus / firebase.tf
Last active March 27, 2024 11:00
Terraform configuration for creating a firebase project with firestore, functions and storage
# firebase.tf https://gist.githubusercontent.com/Zebreus/906b8870e49586adfe8bd7bbff43f0a8/raw/firebase.tf
# Terraform configuration for creating a firebase project with firestore, functions and storage
# Unfinished
terraform {
required_providers {
google-beta = {
source = "hashicorp/google-beta"
version = "4.11.0"
}
@zebreus
zebreus / screenHolder.scad
Created May 31, 2021 10:22
An alternative bracket for a defender Carholder 202
// An alternative extension for a defender carholder 202
holderHeight = 40;
holderLength = 100;
thickness = 2.5;
ballRadius = 10.5;
beamSize = (ballRadius+thickness)*2;
beamHoleLength = 40;
holeRadius = 8.5;
ballCylinderLength = 5;
@zebreus
zebreus / kakuro.pl
Last active April 15, 2021 12:47
A simple kakuro solver using clp in prolog
:- use_module(library(clpfd)).
% A simple test kakuro
kakuroValues1(Configuration, Values) :-
Configuration = [
[21,[A1,A2,A3]],
[11,[B1,B2,B3]],
[10,[C1,C2,C3]],
[23,[A1,B1,C1]],
[12,[A2,B2,C2]],
@zebreus
zebreus / moveScript.sh
Last active June 13, 2022 13:36
Move files to another git repository without losing their history
#!/bin/bash
# Specify source repo
SOURCE_REPO="git@github.com:Zebreus/pruefungsplaner-scheduler.git"
SOURCE_BRANCH="master"
CREATE_TEMP_SOURCE_DIRECTORY=false
CLONE_SOURCE_REPO=true
SOURCE_REPO_DIRECTORY_NAME="source"
SOURCE_REPO_DIRECTORY="."