Skip to content

Instantly share code, notes, and snippets.

View allanjude's full-sized avatar

Allan Jude allanjude

View GitHub Profile
### Keybase proof
I hereby claim:
* I am allanjude on github.
* I am allanjude (https://keybase.io/allanjude) on keybase.
* I have a public key whose fingerprint is ADFD C765 6938 A4C4 8663 A5B7 9AC1 1693 5125 929F
To claim this, I am signing this object:
Please comment on me
##Content
+ This is a list
+ Of things
+ We need
+ To do
/*
* Test if I broke opencrypto's deflate
*/
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* Hackery because we're using sys/zlib.h code in userspace */
#define ZLIB_H
Geom name: ada0
Providers:
1. Name: ada0
Mediasize: 200049647616 (186G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e2
descr: INTEL SSDSC2BA200G4
lunid: 55cd2e404b7d75e8
@allanjude
allanjude / which_os.c
Created October 18, 2017 16:14 — forked from sortie/which_os.c
Detect the operating system using UDP stack corner cases
#include <sys/socket.h>
#include <err.h>
#include <errno.h>
#include <netinet/in.h>
#include <stdio.h>
#include <string.h>
int main(void)
{
@allanjude
allanjude / lockf_linux.diff
Created December 4, 2020 19:51
FreeBSD lockf made to work on Linux
--- /usr/src/usr.bin/lockf/lockf.c 2019-05-04 13:19:22.297590000 -0400
+++ lockf_linux.c 2020-12-04 14:49:25.770507000 -0500
@@ -25,9 +25,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: releng/12.0/usr.bin/lockf/lockf.c 326276 2017-11-27 15:37:16Z pfg $");
-
#include <sys/types.h>