Skip to content

Instantly share code, notes, and snippets.

@thisismiller
thisismiller / stoketest.c
Created August 11, 2017 07:08
C file for stoke
#include <stdint.h>
#include <endian.h>
#include <stdlib.h>
unsigned __int128 ntohlll(unsigned __int128 n) {
struct pieces {
uint64_t a;
uint64_t b;
} *p = (struct pieces*)&n;
return ((unsigned __int128)(be64toh(p->b))) << 64 | be64toh(p->a);
diff -r -u -N -x lib -x dev fresh/etc/group mnt/etc/group
--- fresh/etc/group 2011-04-14 11:36:18.000000000 -0500
+++ mnt/etc/group 2012-04-21 00:03:53.000000000 -0500
@@ -39,3 +39,4 @@
nogroup:x:65534:
libuuid:x:101:
crontab:x:102:
+uml:x:1001:uml
diff -r -u -N -x lib -x dev fresh/etc/gshadow mnt/etc/gshadow
--- fresh/etc/gshadow 2011-04-14 11:36:18.000000000 -0500