Skip to content

Instantly share code, notes, and snippets.

Avatar

Morgan numinit

View GitHub Profile
View 0001-Add-quirks-for-Yuan-Yuan-Enterprises-capture-cards.patch
From b8425aaca49e8f88d114426626cd8266e1e37d34 Mon Sep 17 00:00:00 2001
From: Morgan Jones <me@numin.it>
Date: Sun, 13 Mar 2016 00:56:04 +0000
Subject: [PATCH] Add quirks for Yuan Yuan Enterprises capture cards
---
drivers/pci/quirks.c | 7 +++++++
include/linux/pci_ids.h | 4 ++++
2 files changed, 11 insertions(+)
View xm.glsl
// 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
View virsh-define.rb
#!/usr/bin/env ruby
require 'erb'
require 'tempfile'
require 'shellwords'
require 'logger'
module Libvirt
class ERBContext
def initialize logger
View gist:bfdaed9623c17a8159c6
[ 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
View remove-hackaday-comments.user.js
// ==UserScript==
// @name Remove Hackaday comments
// @namespace http://numin.it
// @version 0.6
// @description remove all potential clues that comments may exist on hackaday.com
// @author numinit
// @match http://hackaday.com/*
// @match https://hackaday.com/*
// @grant none
// ==/UserScript==
View valve.rb
#!/usr/bin/env ruby
# usage: $0 <app ID> <passcode>
require 'uri'
require 'json'
require 'net/http'
module Valve
URI_FORMAT = 'http://store.steampowered.com/actions/clues?key=%s'.freeze
REFERER_FORMAT = 'http://store.steampowered.com/app/%d'.freeze
@numinit
numinit / woomy.rb
Last active Feb 3, 2016
Requires ruby 2.1+. Released under the MIT license. `colorize` gem is optional, but adds colors. Example output: https://i.imgur.com/BmtAoXc.png
View woomy.rb
#!/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
View PurchasableItem.smali
.class public final Lcom/nianticproject/ingress/shared/rpc/store/PurchasableItem;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public assetUrl:Ljava/lang/String;
.annotation build Lo/oi;
.end annotation
View memeheap.rb
#!/usr/bin/env ruby
# Usage: ruby memeheap.rb <host> <port>
# This script was created for the 2015 CSAW CTF: https://ctf.isis.poly.edu
require 'base64'
require 'socket'
# Offset of system() in libc.
SYSTEM_OFFSET = 0x00046640
@numinit
numinit / dexstrings.c
Last active Jul 1, 2017
dexstrings - see older revisions for what it used to output before I made it less verbose
View dexstrings.c
/*
* gcc -Os -odexstrings dexstrings.c
* ./dexstrings /path/to/dex.dex
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <ctype.h>