Skip to content

Instantly share code, notes, and snippets.

View ngerakines's full-sized avatar
🏠
Working from home

Nick Gerakines ngerakines

🏠
Working from home
View GitHub Profile
<?php
$publicKey = 'public';
$privateKey = 'private';
$date = date(DATE_RFC2822);
$path = '/api/wow/character/Medivh/Korale';
$auth = 'BNET ' . $publicKey . ':' . base64_encode(hash_hmac('sha1', "GET\n{$date}\n{$path}\n", $privateKey, true));
{
"lastModified":1308604169000,
"name":"Jeanelly",
"realm":"Medivh",
"class":8,
"race":7,
"gender":"female",
"level":85,
"achievementPoints":9175,
"thumbnail":"medivh/16/11635728-avatar.jpg",
{
"lastModified":1308348743000,
"name":"Jeanelly",
"realm":"Medivh",
"class":8,
"race":7,
"gender":"female",
"level":85,
"achievementPoints":9175,
"thumbnail":"medivh/16/11635728-avatar.jpg",
"members":[
{
"character":{
"name":"Mequieres",
"realm":"Medivh",
"class":5,
"race":1,
"gender":"female",
"level":85,
"achievementPoints":6910,
#ifndef __OXEN_MEMORY_STORAGE_H__
#define __OXEN_MEMORY_STORAGE_H__
#include "libtorrent/storage.hpp"
#include <boost/filesystem/path.hpp>
namespace libtorrent {
struct temp_storage : storage_interface {

By now, I think that it is safe to assume that most tech savvy people know what bit torrent is and appreciate it to some degree. BT is a really useful and interesting thing, but there are a lot of hard and interesting problems to solve.

The problem that I've been thinking about a lot lately is how to setup seed nodes on boxes that don't have a lot of disk space or ram available. The example that comes to mind is trying to setup a system that can serve lots of different torrents on a small slicehost box or the like.

So, when designing an application to work in these restricted environments, this is what I'd want:

  • Provide a simple command line interface
  • Be able to quickly deploy with a single configuration file
  • Monitor one or more xml feeds or directories to automatically add torrents to the queue
JohnLocke, an open source bit torrent tracker daemon.
* Written in c
* Uses libevent 2.0+
* Supports different modes to help tracker operators shape the swarm
# Global Configuration Options
* '--daemon' Run the tracker as a daemon. Note that by default it will write
the pid to `/var/run/johnlocke.pid`.
JohnLocke, an open source bit torrent tracker daemon.
* Written in c
* Uses libevent 2.0+
* Supports different modes to help tracker operators shape the swarm
# Global Configuration Options
* '--daemon' Run the tracker as a daemon. Note that by default it will write
the pid to `/var/run/johnlocke.pid`.
Wednesday, January 26, 7 p.m. in the Blizzard Cafeteria...
Worldbreaker Draft Event
What's this?
It's a TCG booster draft event for the new Worldbreaker set.
Should I bring anything?
Nope, we'll supply the cards.
https://github.com/languages/Erlang
https://github.com/nialscorva/erlymock
https://github.com/Vagabond/gen_smtp
https://github.com/ngerakines/etap
https://github.com/ngerakines/syslognif
https://github.com/ngerakines/cerlan
https://github.com/ngerakines/erlang_protobuffs
https://github.com/ngerakines/erlang_wowarmory
https://github.com/mojombo/mustache.erl