Skip to content

Instantly share code, notes, and snippets.

View f3ndot's full-sized avatar

Justin Bull f3ndot

View GitHub Profile
@f3ndot
f3ndot / petstore-swagger-plus-hash-property.json
Last active June 7, 2019 19:50
Minimal example of "hash" property being a reserved name for Ruby codegen'd clients
{
"swagger": "2.0",
"info": {
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
"version": "1.0.0",
"title": "Swagger Petstore",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"email": "apiteam@swagger.io"
},
@f3ndot
f3ndot / libaom_import_poc.c
Last active January 30, 2019 14:11
Trying to figure out why this wont work on Ubuntu 18.10 (Cosmic)
#include <stdio.h>
#include <stdlib.h>
#include <aom/aom_decoder.h>
#include <aom/aomdx.h>
// This is a minimal example of trying to import libaom's decoding functionality, as seen in
// ffmpeg/libavformat's source code. First ensure libaom-dev is installed on your machine with
// a version greater than or equal to 1.x
//

Keybase proof

I hereby claim:

  • I am f3ndot on github.
  • I am justinbull (https://keybase.io/justinbull) on keybase.
  • I have a public key whose fingerprint is E09D 38DE 8FB7 5745 2044 A0F4 1A2B DEAA 68FD B34C

To claim this, I am signing this object:

@f3ndot
f3ndot / uni-submit.php
Last active December 13, 2015 20:28
Basic academic submission script
<?php
session_start();
/*********************************
* START of Configuration Options
*********************************/
// set the timezone the server should use when working with dates
date_default_timezone_set('America/Toronto');
@f3ndot
f3ndot / key_schedule_test.c
Last active December 12, 2015 03:18
An ugly proof-of-concept for removing the 8th bit of every byte in a 9-byte key and combining the results into an 8-byte key schedule.
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BYTETOBINARYPATTERN "%d%d%d%d%d%d%d%d"
#define BYTETOBINARY(byte) \
(byte & 0x80 ? 1 : 0), \
(byte & 0x40 ? 1 : 0), \
(byte & 0x20 ? 1 : 0), \