Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View numinit's full-sized avatar

Morgan numinit

View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <stdint.h>
#include <unistd.h>
#include <stddef.h>
#include <stdbool.h>
#include <signal.h>
#include <jni.h>
#!/usr/bin/env ruby
# usage: echo <string> | ruby kryptos.rb
# assumes you have a spreadsheet or something open
# with the top left character (space) at column A, row 1
k4 = <<EOF.chomp.lines.map(&:chomp)
OBKR
UOXOGHULBSOLIFBBWFLRVQQPRNGKSSO
TWTQSJQSSEKZZWATJKLUDIAWINFBNYP
@numinit
numinit / shattered_length_extension.rb
Last active February 24, 2017 04:28
Usage: echo -n text_to_append | ruby shattered_length_extension.rb
#!/usr/bin/env ruby
# output format:
# => collided sha1
# => message 1 base64
# => message 2 base64
require 'base64'
require 'digest/sha1'
def foo a, h
[a, h]
end
foo :bar, {
a: proc do
end,
b: proc do
end
}
@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;
@numinit
numinit / xm.glsl
Last active February 23, 2016 04:13
// The swirly XM stuff, such as the inner part of a resonator.
#ifdef FRAGMENT
precision mediump float;
#endif
#pragma optimize full
varying vec4 v_texCoord0And1;
#ifdef VERTEX

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 / woomy.rb
Last active February 3, 2016 23:40
Requires ruby 2.1+. Released under the MIT license. `colorize` gem is optional, but adds colors. Example output: https://i.imgur.com/BmtAoXc.png
#!/usr/bin/env ruby
# -*- encoding: UTF-8 -*-
#######################################################################
# woomy.rb prints the current Splatoon map rotations. #
# If the `colorize` gem is installed, it will print them with colors. #
#######################################################################
=begin
Copyright (c) 2015+ Morgan Jones
#!/usr/bin/env ruby
require 'erb'
require 'tempfile'
require 'shellwords'
require 'logger'
module Libvirt
class ERBContext
def initialize logger
[ 413.973887] DMAR: DRHD: handling fault status reg 2
[ 413.974712] DMAR: DMAR:[DMA Read] Request device [00:14.0] fault addr 7afafafafa000
DMAR:[fault reason 04] Access beyond MGAW