Skip to content

Instantly share code, notes, and snippets.

View deoxxa's full-sized avatar

Conrad Pankoff deoxxa

View GitHub Profile
@deoxxa
deoxxa / Makefile
Created May 24, 2012 14:35
Silly zero-copy minecraft protocol parser idea!
CFLAGS += -std=c99 -Wall -Werror -Wextra -pedantic -O0 -g
all: test
parser.o: parser.c
$(CC) $(CFLAGS) $(LDFLAGS) -c -o parser.o parser.c
test.o: test.c
$(CC) $(CFLAGS) $(LDFLAGS) -c -o test.o test.c
{"regex":{"body":"^NTLM$","flags":""},"type":"server","name":null}
{"regex":{"body":"^Negotiate$","flags":""},"type":"server","name":null}
{"regex":{"body":"^Fortigate$","flags":""},"type":"server","name":null}
{"regex":{"body":"^Basic realm=\"\"$","flags":""},"type":null,"name":null}
{"regex":{"body":"^Basic realm=\" /\"$","flags":""},"type":null,"name":null}
{"regex":{"body":"^Basic realm=\"\\.\"$","flags":""},"type":null,"name":null}
{"regex":{"body":"^Basic realm=\"/\"$","flags":""},"type":null,"name":null}
{"regex":{"body":"^Basic$","flags":""},"type":null,"name":null}
{"regex":{"body":"^Basic realm=\"Linksys (\\S+)\"$","flags":"i"},"type":"router","name":"Linksys $1"}
{"regex":{"body":"^Basic realm=\"(DSL-[A-Z]{0,1}\\d+[A-Z]{0,1})\"$","flags":"i"},"type":"router","name":"D-Link $1"}
@deoxxa
deoxxa / WILD SPECULATION
Created August 29, 2012 12:01
AniDB Database Stuff
64617461 // "data"
0a000000 // 10 (elements?)
7f000000 // 127 (somehow related to length...?)
000100040800000000 // no idea
ffffffbb // ffffffbb shows up 10 times, same as the "element count" value above
ffffffe4 // seems to mark the beginning of a field? maybe?
000600000000000000000200041800000003
ffffffbb
ffffffe4
0041006e0069006d0065002d0045006d00700069007200650000 // ucs2-be/utf16-be string terminated with a null character
@deoxxa
deoxxa / person-list_test.jsx
Created January 28, 2015 21:54
a react test
/** @jsx React.DOM */
var assert = require('chai').assert;
var React = require('react/addons');
var TestUtils = React.addons.TestUtils;
var PersonList = require('./person-list.jsx');
describe('PersonList', function() {
@deoxxa
deoxxa / modules.md
Created January 25, 2015 03:10
stuff i use for go web apps
type_person(bigco_it_guy).
type_person(bigco_big_boss).
type_person(bigco_web_manager).
type_person(bigco_web_worker_1).
type_person(bigco_web_worker_2).
type_person(bigco_web_worker_3).
type_person(bigco_mobile_manager).
type_person(bigco_mobile_worker_1).
type_person(bigco_mobile_worker_2).
type_person(bigco_mobile_worker_3).
@deoxxa
deoxxa / usage
Last active January 15, 2021 19:20
lol "streaming video"
ffmpeg -i /path/to/a/video -f rawvideo -vcodec rawvideo -s 60x24 -pix_fmt rgb24 - 2>/dev/null | ./video.js 60 24
check it out: http://d.pr/i/wjEj
@deoxxa
deoxxa / gist:777777
Created January 13, 2011 12:18
777777
777777
@deoxxa
deoxxa / broken.html
Created October 6, 2012 01:33
cheerio parser killer
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8" /><meta name="description" content="A BitTorrent community focused on Eastern Asian media including anime, manga, music, and more." /><meta name="keywords" content="Daiz, anime, manga, music, Japan, Japanese, torrent, download, community" /><title>NyaaTorrents &#62;&#62; Torrent Information &#62;&#62; [AOT] Fullmetal Alchemist Brotherhood Full [Episodes 1-64 Complete Batch] [720p BD 100MB] | Anime, manga, and music - Just say the word</title><link rel="icon" type="image/png" href="http://files.nyaa.eu/favicon.png" /><link rel="stylesheet" type="text/css" href="http://files.nyaa.eu/www.css" title="CSS" /><link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://www.nyaa.eu/?page=rss" /><script src="http://files.nyaa.eu/functions.js" type="text/javascript"></script></head><body><div id="topbar"><div id="navbar"><ul id="tabnav"><li><a href="http://www.nyaa.eu/">Browse</a></li><li><a href="http://www.nyaa.eu/?page=upload">Upload</a></l
year: 2019, month: 12, day: 26
PIC(i8259): cascading mode, vectors 0x50-0x58
PS2MouseDevice: Device detected
PS2MouseDevice: No mouse wheel detected!
SB16: sb not readyVC: Switch to 0 (0x002c4178)
Starting Serenity Operating System...
MM: Multiboot mmap: base_addr = 0x000000000, length = 0x00009fc00, type = 0x1
MM: Multiboot mmap: base_addr = 0x00009fc00, length = 0x000000400, type = 0x2
MM: Multiboot mmap: base_addr = 0x0000f0000, length = 0x000010000, type = 0x2
MM: Multiboot mmap: base_addr = 0x000100000, length = 0x01fef0000, type = 0x1