Skip to content

Instantly share code, notes, and snippets.

static int ROWS = 20;
static int COLS = 40;
void initializeBoard(int *board) {
int i, j;
for (i = 0; i < ROWS; i++) {
for (j = 0; j < COLS; j++) {
*(board + i * COLS + j) = 0;
}
}
# TODO: FreeBSD FIB / Multi-Instance Support in FRR
This document outlines the roadmap for adapting FRR's VRF implementation to support FreeBSD FIBs (Routing Tables).
## Technical Constraints & Standards
- [ ] **Platform Gating**: All FreeBSD-specific system calls (like `SO_SETFIB`) and logic must be wrapped in `#ifdef __FreeBSD__` blocks to prevent regressions or build failures on other BSDs or Linux.
- [ ] **Feature Detection**: Where possible, use existing FRR macros for BSD feature detection to maintain compatibility with different FreeBSD versions.
## 1. YANG & Northbound Abstraction
- [ ] **Extend `frr-vrf.yang`**: Add a `table-id` leaf to the `/frr-vrf:lib/vrf` list. This allows users to manually map a VRF name to a kernel FIB ID.
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/DevicePathLib.h>
#include <Guid/GlobalVariable.h>
/**
Scrubs all serial and UART device paths from the ConOut variable.
**/
#define EFI_GLOBAL_VARIABLE_GUID \
{ 0x8B843E20, 0x8110, 0x4318, { 0xCC, 0x69, 0x87, 0xCE, 0x47, 0x46, 0x61, 0x03 } }
// Standard UEFI Terminal Type GUIDs used by BIOS redirection
static EFI_GUID gEfiPcAnsiGuid = { 0xE0C1ECE1, 0x5544, 0x11D4, { 0x9A, 0x39, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D } };
static EFI_GUID gEfiVt100Guid = { 0xDFA666B1, 0x1E59, 0x11D4, { 0x9A, 0x38, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D } };
static EFI_GUID gEfiVt100PlusGuid = { 0x7BA0BCC0, 0x1B58, 0x4114, { 0xA7, 0xA9, 0x54, 0x90, 0xA3, 0x84, 0x2B, 0x8B } };
static EFI_GUID gEfiVtUtf8Guid = { 0xAD15A0D6, 0x8BEC, 0x4B4A, { 0xBA, 0x20, 0x00, 0x80, 0xC7, 0x7E, 0x59, 0x37 } };
EFI_STATUS FilterConsoleVariable(CHAR16 *VarName) {
say you have a VPS ..
- it has a wan address of 208.79.92.66/24
- you can assign more addresses but it doesn't do you a hell of a lot of good because you want to pilfer addresses from that
/24 for other servers
- create a tunnel between your VPS and the host that you want to have use the address, lets say we're going to use
208.79.92.67/24 and 208.79.92.68/24
- tunnel remote is 10.0.0.1 tunnel local is 10.0.0.2
- add a route to 208.79.92.67/32 via 10.0.0.1
- add an ARP proxy entry; what this does is sends ARP saying 208.79.92.67 is at <mac address of interface that 208.79.92.66/24
./README.txt.old:Django LDAP Certificate Authority + Control Plane System
./README.txt.old:========================================================
./README.txt.old:This system is an internal infrastructure platform built using Django that combines a private Certificate Authority (PKI), LDAP-based policy enforcement, Kerberos bootstrap enrollment, asynchronous certificate issuance via Celery, and a certificate-based control-plane messaging system over UDP.
./README.txt.old:It is designed for environments where machines are fully managed and centrally controlled. Identity is not user-based or credential-based — it is entirely certificate-based.
./README.txt.old:After a machine is enrolled, it is no longer identified by Kerberos or any API key system. Instead, its identity becomes a set of X.509 certificates issued by the internal CA, with a mandatory control-plane certificate acting as the primary identity for all future communication.
./README.txt.old:LDAP defines what a machine is allowed to become. The CA e
;;; conway.ss - Conway's Game of Life
;;; Renders the classic cellular automaton on an infinite toroidal grid using ANSI terminal codes.
(export main)
;; Import standard utility modules
(import :std/iter ; For imperative loops (for, in-range)
:std/sugar ; Syntactic sugar additions
:std/srfi/1 ; List processing library
:std/misc/threads) ; For frame-rate limiting (thread-sleep!)
ok so only path to repro I have is
```
route_core_null_000_8="0.0.0.0/8 -reject -fib 1"
route_core_null_010_8="10.0.0.0/8 -reject -fib 1"
route_core_null_100_64_10="100.64.0.0/10 -reject -fib 1"
route_core_null_169_254_16="169.254.0.0/16 -reject -fib 1"
route_core_null_172_16_12="172.16.0.0/12 -reject -fib 1"
route_core_null_192_0_0_24="192.0.0.0/24 -reject -fib 1"
route_core_null_192_0_2_24="192.0.2.0/24 -reject -fib 1"
route_core_null_192_88_99_24="192.88.99.0/24 -reject -fib 1"
INFO] [Content] Content loading skipped. Implementation will load it on its own.
[INFO] [Environ] SET_PIXEL_FORMAT: XRGB8888.
[libretro INFO] Unzip: /home/sq/.config/retroarch/saves/PUAE/TEMP/Zak1.adf
[libretro INFO] Unzip: /home/sq/.config/retroarch/saves/PUAE/TEMP/Zak2.adf
[libretro INFO] ->M3U: /home/sq/.config/retroarch/saves/PUAE/TEMP/Zak McKracken.m3u
[libretro INFO] No model specified in: "/home/sq/.config/retroarch/saves/PUAE/TEMP/Zak McKracken.m3u".
[libretro INFO] Model: "A500".
[libretro INFO] Kickstart: "kick34005.A500".
[libretro INFO] M3U parsed, 2 file(s) found
[libretro INFO] Disk (1) inserted in drive DF0: "/home/sq/.config/retroarch/saves/PUAE/TEMP/Zak1.adf".
---<<BOOT>>---
Copyright (c) 1992-2025 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 15.0-RELEASE releng/15.0-n280995-7aedc8de6446 GENERIC amd64
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2)
VT(efifb): resolution 1024x768
CPU: Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz (2500.00-MHz K8-class CPU)
Origin="GenuineIntel" Id=0xa0652 Family=0x6 Model=0xa5 Stepping=2