Skip to content

Instantly share code, notes, and snippets.

View rw-r-r-0644's full-sized avatar

rw-r-r-0644 rw-r-r-0644

  • Italy
  • 11:36 (UTC +02:00)
View GitHub Profile
@rw-r-r-0644
rw-r-r-0644 / fb.c
Last active May 31, 2019 16:47
Wii U framebuffer library
/**
* @file fb.c
* @brief Wii U framebuffer library
* This file is under GNU GPL
* Copiright(c) 2017 rw-r-r_0644, QuarkTheAwesome
*/
#include "fb.h"
u32* gx2_regs;
@rw-r-r-0644
rw-r-r-0644 / FBLib.c
Last active May 31, 2019 16:26
idk? Looks like another Wii U framebuffer library ...
/*
* Copyright (C) 2017 rw-r-r-0644, QuarkTheAwesome
* Code under GNU GPL license
*/
#include "fb.h"
#include <stdlib.h>
#include <malloc.h>
#include <system/memory.h>
@rw-r-r-0644
rw-r-r-0644 / obbfrun.c
Last active September 17, 2021 13:21
Obfuscated brainfuck interpreter
/* Copyright (C) 2017 rw-r-r-0644 */
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
char m[1<<16],*o=m,*p;j,k;main(a,b)char**b;{for(k=lseek(j=open(b[1
],0),0,2),lseek(j,0,0),read(j,p=calloc(k+1,1),k);*p;p++){(j=*p)>42
&j<47?j&1?*o+=44-j:j&2?putchar(*o):read(0,o,1):(j&~2)==60?o+=j-61:
@rw-r-r-0644
rw-r-r-0644 / PKGBUILD
Created June 9, 2019 19:53
Arch Linux package for mkgpt
pkgname=mkgpt-git
pkgver=r8.7f78e38
pkgrel=1
pkgdesc="Command line tool to generate disk images containing GPT partition tables"
arch=('i686' 'x86_64')
url="https://github.com/jncronin/mkgpt"
license=('MIT')
makedepends=('git')
provides=('mkgpt')
conflicts=('mkgpt')
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#define NVALUE 9 // box contains no value
#define SECT(n) ((n / 3) * 3) // start of sector for index
#define NSECT(n) (SECT(n) + 3) // start of next sector for index
@rw-r-r-0644
rw-r-r-0644 / codes.c
Created April 15, 2020 19:39
gecko-code-parser
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "codes.h"
#include "vle.h"
char *psize(int size, uint32_t value)
#pragma once
#include <wut.h>
#include <stdint.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
asn1=SEQUENCE:pubkeyinfo
[pubkeyinfo]
algorithm=SEQUENCE:rsa_alg
pubkey=BITWRAP,SEQUENCE:rsapubkey
[rsa_alg]
algorithm=OID:rsaEncryption
parameter=NULL
asn1=SEQUENCE:pubkeyinfo
[pubkeyinfo]
algorithm=SEQUENCE:rsa_alg
pubkey=BITWRAP,SEQUENCE:rsapubkey
[rsa_alg]
algorithm=OID:rsaEncryption
parameter=NULL
[0005001010000100]
boot1 version history
Not on NUS:
v1006
v6164
On NUS:
v8296 (1.0.1 ??)
v8325 (2.0.0)