Skip to content

Instantly share code, notes, and snippets.

View drizzt's full-sized avatar

Timothy Redaelli drizzt

View GitHub Profile
@drizzt
drizzt / dump.rb
Last active September 4, 2015 23:54
#!/usr/bin/env ruby
# Copyright (c) 2010, 2011 Timothy Redaelli <[email protected]>
#
# 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
@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
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

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:

/*
Codo Player Free 2.1
codoplayer.com
Codo Player Free is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later version.
You should have received a copy of the GNU General Public License along with Codo Player.
If not, see <http://www.codoplayer.com/policy/license/free>.
@drizzt
drizzt / 00-README.md
Last active March 10, 2016 18:11
keepassx 2.0.2 binary for Tails

This gist includes the keepassx 2.0.2 (with Twofish support), built under a Virtual Machine with a vanilla Debian 8.3 (i386) using the following commands (as root):

apt-get install build-essential cmake libqt4-dev libgcrypt11-dev zlib1g-dev libxtst-dev makeself wget ca-certificates

ver=2.0.2
wget https://www.keepassx.org/releases/$ver/keepassx-$ver.tar.gz
tar xzf keepassx-$ver.tar.gz
cd keepassx-$ver
http://hlstv-g4.swisscom.com/iphone/smil:2204_iPhone.smil/playlist.m3u8?NHM=vyqqqqqxytu&NHM6=y&N6=MLKP5E6&J=yvvxvzssqttrv&E=xrrzz&76=x&6HM=TLOWUHaIBCLaB86PEy&F=-yMPtKMNzvMwwuqstqtzzutwvxMLyNvwu&MSK=true
require 'json'
require 'uri'
require 'net/http'
uri = URI('https://medium.com/@terremotocentroitalia/latest')
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
req = Net::HTTP::Get.new(uri, 'Accept' => 'application/json')
http.request(req)
end
<?php
require 'xpub.php';
?>
<html>
<head></head>
<body>
<script src="//blockr.io/js_external/coinwidget/coin.js"></script>
<script>
CoinWidgetCom.go({
wallet_address: '<?php echo(get_bitcoin_address('xpub6CWiJoiwxPQni3DFbrQNHWq8kwrL2J1HuBN7zm4xKPCZRmEshc7Dojz4zMah7E4o2GEEbD6HgfG7sQid186Fw9x9akMNKw2mu1PjqacTJB2')); ?>',