Skip to content

Instantly share code, notes, and snippets.

View winocm's full-sized avatar
💭
Lonely.

Sarah Purohit winocm

💭
Lonely.
View GitHub Profile
@winocm
winocm / mispy.c
Created January 28, 2014 23:11
Happy birthday @M1sp! <3
#include <stdio.h>
#include <stdint.h>
#include <strings.h>
#include <stdlib.h>
#define __t uint32_t
#define __r return
typedef struct _$n{union{struct{__t o:5;__t rt:4;__t ra:4;__t z:4;__t sreg:8;__t _rs$v:7;}____;__t e;}u;} _$n;typedef struct _$i {
union{struct{__t o:5;__t z:4;__t _:16;__t __:7;}____;__t e;}u;}_$i;typedef struct _$l {union{struct{__t o:5;__t rt:4;__t ra:4;
@winocm
winocm / kdump.c
Created March 26, 2012 02:25
kernel stuff for ARM XNU
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.