Skip to content

Instantly share code, notes, and snippets.

View Th3Fanbus's full-sized avatar
🔥
overheating

Angel Pons Th3Fanbus

🔥
overheating
  • 13:56 (UTC +02:00)
View GitHub Profile
@Th3Fanbus
Th3Fanbus / custom_dark
Created April 27, 2021 17:14
custom dark
! Custom dark colorscheme
! special
*.background: #000000
*.foreground: #e5e5e5
*.cursorColor: #a47996
! black
*.color0: #000000
*.color8: #666666
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
static const bool is_ivybridge = true;
@Th3Fanbus
Th3Fanbus / static.c
Created November 27, 2022 17:47
static.c of P8Z77-V LX2 with https://review.coreboot.org/56912
#include <boot/coreboot_tables.h>
#include <device/device.h>
#include <device/pci.h>
#include <fw_config.h>
#include <static.h>
#include "cpu/intel/model_206ax/chip.h"
#include "northbridge/intel/sandybridge/chip.h"
#include "southbridge/intel/bd82x6x/chip.h"
#if !DEVTREE_EARLY
@Th3Fanbus
Th3Fanbus / posix_for_range.sh
Created May 28, 2023 08:00
POSIX-compatible looping over
#!/usr/bin/env sh
# POSIX-compatible scripts cannot use the non-POSIX
# `seq` command or any shell-specific functionality.
# This is a helper function to make number lists to
# be used in for-loops. This is a reduced subset of
# the functionality `seq` provides, but is portable.
range() {
loopcnt=$1
while [ "$loopcnt" -le "$2" ]