Skip to content

Instantly share code, notes, and snippets.

View numinit's full-sized avatar

Morgan numinit

View GitHub Profile
@numinit
numinit / dexstrings.c
Last active July 1, 2017 16:20
dexstrings - see older revisions for what it used to output before I made it less verbose
/*
* gcc -Os -odexstrings dexstrings.c
* ./dexstrings /path/to/dex.dex
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <ctype.h>
// ==UserScript==
// @name XKCDUniqueRandom
// @namespace http://numin.it/
// @version 0.1
// @license MIT
// @description uniquely samples XKCDs when you press Random
// @author numinit
// @match http://xkcd.com/*
// @match https://xkcd.com/*
// @grant none
@numinit
numinit / xm.md
Last active August 29, 2015 14:16

Ingress XM Changes (03/12)

Level New Old
1 3000 3000
2 4000 4000
3 5000 5000
4 6000 6000
5 7000 7000
6 8000 8000

Keybase proof

I hereby claim:

  • I am numinit on github.
  • I am numinit (https://keybase.io/numinit) on keybase.
  • I have a public key whose fingerprint is 190B DA97 F616 DE35 6899 ED17 F819 F1AF 2FC1 C1FF

To claim this, I am signing this object:

@numinit
numinit / jpeg.c
Last active September 17, 2016 08:34
/* gcc -Os -o jpeg jpeg.c
* ./jpeg in_file.jpg
*/
#include <stdio.h>
#include <stdint.h>
#include <string.h>
typedef struct chunk {
uint16_t marker;

Project Architeuthis ARG

In AD 2014, ARG was beginning.

WARNING: Contains spoilers for the final solution. Click here to jump to it.

April 28

In AD 2014, ARG was beginning.

@numinit
numinit / levels.md
Last active December 26, 2015 06:29

Ingress: Upcoming AP changes

Ingress has 36 levels, called "client levels." Gameplay levels (1 to 8) can be given by the expression floor(clientLevel/5) + 1.

Some new changes are coming up that will probably help newer players. Here they are.

Level AP Threshold (new) AP Threshold (old) Delta
1 0 0 0
1 500 2000 -1500
#include "lc3.h"
static lc3 *global_ctx = NULL;
static struct termios oldt, newt;
void lc3_printf(const char *format, ...) {
va_list args;
const char *ptr;
FILE *stream;
@numinit
numinit / ichat.rb
Last active December 11, 2015 01:49
puts "*** Loading Objective-C dependencies, this will take a moment"
require 'rubygems'
require 'htmlentities'
require 'json'
framework 'Foundation'
framework 'AppKit'
class Person
#if defined(MACOS)
#define HAVE_STRUCT_TIMESPEC 1
#include <mach-o/dyld.h>
#include <libgen.h>
#elif defined(LINUX)
#elif defined(WINDOWS)
#endif
#include <stdio.h>
#include <locale.h>