Skip to content

Instantly share code, notes, and snippets.

View drizzt's full-sized avatar

Timothy Redaelli drizzt

View GitHub Profile

Keybase proof

I hereby claim:

  • I am drizzt on github.
  • I am drizzt (https://keybase.io/drizzt) on keybase.
  • I have a public key whose fingerprint is 8CF9 34E3 39CA D8AB F342 E822 E711 306E 3C4F 88BC

To claim this, I am signing this object:

require 'bindata'
require 'find'
class Sfo
class SfoHeader < BinData::Record
string :magic, :length => 4, :check_value => "\x00PSF"
uint32be :versfidn, :check_value => 0x01010000
uint32le :key_table_offset
uint32le :data_table_offset
uint32le :number_of_items
@drizzt
drizzt / mac.c
Created March 16, 2011 15:07
Some useful C functions to manage mac addresses
/**
* @brief Some useful C functions to manage mac addresses
* @file
*/
#include <stdio.h>
#include <inttypes.h>
#include <limits.h>
/** Convert hex mac address to uint64_t
@drizzt
drizzt / dump.rb
Last active September 4, 2015 23:54
#!/usr/bin/env ruby
# Copyright (c) 2010, 2011 Timothy Redaelli <timothy@redaelli.eu>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF