Skip to content

Instantly share code, notes, and snippets.

View dequbed's full-sized avatar
🔥
Thoroughly unconvinced of the concept of gender

Nadja von Reitzenstein Čerpnjak dequbed

🔥
Thoroughly unconvinced of the concept of gender
View GitHub Profile
@dequbed
dequbed / gender.eselect
Last active January 22, 2024 13:40
Manage your genders using eselect.
# -*-eselect-*- vim: ft=eselect
# Copyright 2005-2020 Gentoo Authors
# Distributed under the terms of the GNU GPL version 2 or later
DESCRIPTION="Manage available genders"
MAINTAINER="transagenda@gentoo.org"
VERSION="42"
find_genders() {
local f
use ::libc;
use libc::size_t;
use crate::consts::*;
use crate::gsasl::{Gsasl, Gsasl_mechanism, Gsasl_session};
extern "C" {
#[no_mangle]
fn strcat(_: *mut libc::c_char, _: *const libc::c_char)
-> *mut libc::c_char;
/* Authentication functions: xstart.c, xstep.c, xfinish.c */

Keybase proof

I hereby claim:

  • I am dequbed on github.
  • I am dequbed (https://keybase.io/dequbed) on keybase.
  • I have a public key whose fingerprint is 40CC 24A2 BFF2 2492 6F9A F36E 03F4 9A19 9AF6 9A70

To claim this, I am signing this object:

@dequbed
dequbed / macros.c
Created May 11, 2017 21:18
Because why not implement functional elements in CPP?
// Helper Macros. We need them because concatination character blues macros :(
#define CAT(x, ...) CATRE(x, __VA_ARGS__)
#define CATRE(x, ...) x ## __VA_ARGS__
// Selector Macros
#define HEAD(x, ...) x
#define LAST(x, y, ...) y
#define TAIL(x, ...) __VA_ARGS__
// Abstract boolean types away
/* compile with `gcc -Wall -O0 -static -s -o mainarray mainarray.c` */
const unsigned int main[] = {
3850979413, 440, 113408, 2372337664,
4149, 3586560, 84869120, 15544,
266023168, 1970426885, 1260418163, 1651469417,
744846457, 660957216, 1700929651, 1919251572,
1953068832, 541270120, 1768382829, 1752440931,
2032168545, 539915631, 2416587580, 93
};

Keybase proof

I hereby claim:

  • I am dequbed on github.
  • I am dean4devil (https://keybase.io/dean4devil) on keybase.
  • I have a public key ASAJAW0VzIDfF8w0BhH_-ceuE3cnbcM0THSukzy-XFMaeAo

To claim this, I am signing this object:

@dequbed
dequbed / encoding.md
Last active October 14, 2015 14:46
Binary Encoding scheme

Arbitary type encoding

This encoding scheme allows for all Lua datatypes to be encoded in an relatively efficient binary encoding. It uses a TLV-scheme for encoding.

Encoding Structure

The encoding of data consists of three components that appear in the following order:

Identifier octets | Lenght octets | Value octets