Skip to content

Instantly share code, notes, and snippets.

View LinuxJedi's full-sized avatar

Andrew Hutchings LinuxJedi

View GitHub Profile
@LinuxJedi
LinuxJedi / convert_topaz.c
Created February 13, 2023 14:35
Generate Amiga Topaz font for microcontrollers
// SPDX-License-Identifier: BSD-3-Clause
// This takes the font from AROS sources (under their APL license) and converts it to a format that can be used in microcontrollers.
// In AROS each line of each character is in a different block and the bytes are big endian.
// This code reassembles the font so that every line of the array is one character (each byte is a row of pixels), then reverses the endianess.
// Note that the font starts at ASCII char 32.
#include <stdio.h>
#define _EURO 1
Verifying that +linuxjedi is my blockchain ID. https://onename.com/linuxjedi
@LinuxJedi
LinuxJedi / nginx.gdb
Created July 15, 2015 14:54
GDB functions for NGINX
define ddl
set $log = ngx_cycle->log
while ($log != 0) && ($log->writer != ngx_log_memory_writer)
set $log = $log->next
end
if ($log->wdata != 0)
set $buf = (ngx_log_memory_buf_t *) $log->wdata
dump memory debug_log.txt $buf->start $buf->end