Skip to content

Instantly share code, notes, and snippets.

View ijustlovemath's full-sized avatar

ijustlovemath

View GitHub Profile
@ijustlovemath
ijustlovemath / simple_serialize.c
Created November 8, 2022 22:46
A very simple example of how you can make a serializer in C using a packed binary format
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
struct simple_header {
char kind; /* I arbitrarily chose a char, which could use something like 's' for string, 'i' for int, etc. Commonly you will see an enum used here */
int length; /* You could use a negative length to indicate errors of some kind, or just use a simple size_t */
};
@ijustlovemath
ijustlovemath / .asoundrc
Created February 26, 2016 18:50
audio config files
# config from
# https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/PerfectSetup/
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
@ijustlovemath
ijustlovemath / config.log
Created February 23, 2016 23:07
config.log from Guile build
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU Guile configure 2.0.11, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/home/redacted/local
## --------- ##
## Platform. ##
We couldn’t find that file to show.
@ijustlovemath
ijustlovemath / stage3.log
Created February 18, 2016 19:44
Stage 3 of Gentoo Prefix Bootstap
hostname.o: In function `sethname':
hostname.c:(.text+0x1d): undefined reference to `libintl_gettext'
hostname.c:(.text+0x81): undefined reference to `libintl_gettext'
hostname.c:(.text+0xb1): undefined reference to `libintl_gettext'
hostname.o: In function `setdname':
hostname.c:(.text+0x101): undefined reference to `libintl_gettext'
hostname.c:(.text+0x165): undefined reference to `libintl_gettext'
hostname.o:hostname.c:(.text+0x195): more undefined references to `libintl_gettext' follow
hostname.o: In function `main':
hostname.c:(.text+0x97d): undefined reference to `libintl_bindtextdomain'