What.cd's Gazelle on GitHub
github.com
github.com
This is an important change for Gazelle coders. You may have noticed that gazelle/ is now redirecting to http://whatcd.github.io/Gazelle/.
This is due to the fact that we are now hosting our public Gazelle repository on GitHub.
The old gazelle site had become severely outdated and a nuisance to maintain.
Luckily for us, GitHub is the perfect solution.
You can view our Gazelle repository here—it is accompanied by a GitHub page providing a brief overview of the project as well as a wiki with important information such as installation instructions, coding standards, and API documentation.Yeah, not to be negative, but it literally has SQL and HTML in one file. Ooof.
I really understand why people hate PHP so much when all they get to see is purely non-optimized shit. It generally has a really bad reputation which it doesn't deserve. Especially in HN-circles.
I'm sure you can do nice things in PHP if you try hard enough, but you sure don't need to make any effort to do something absolutely terrible.
If you know of any others please let me know!
* Not that the well-known ones are illegal either, really, but the point is slightly academic as they will still throw people in jail over it...
Basic bittorrent outline:
You download a .torrent file which contains (amongst other things) a list of files, their hashes, and a list of trackers to connect to.
Your BitTorrent client connects to the tracker and says "Hi, who else has or is looking for these files"?
It returns a list of these people (aka "peers") and your BitTorrent client then connects directly to peers to download the files (and upload them to other people).
Hopefully from this explanation you can see that you need it for two purposes, one so you can give the right infohash to the tracker, and two so you can verify the data you receive from peers.
For a single instance, https://github.com/WhatCD/Gazelle/blob/master/sections/user/...
The $UserId variable, which is used throughout the queries within this file, is set by an unfiltered GET variable.
if (empty($_GET['id']) || !is_numeric($_GET['id']) || (!empty($_GET['preview']) && !is_numeric($_GET['preview']))) {
TorrentFreak made a great story about this[1].
[1] http://torrentfreak.com/what-cd-debuts-lightweight-tracker-f...
Some other cool trackers to look at are Shadowolf (although I believe that's discontinued, sadly) and Lioness if that's floating around anywhere (What.CD likes wildcat-based codenames)
COPYRIGHTED AND PATENTED PENDING BY WHAT.CD INCORPORATED,
DBA/AKA PROJECT GAZELLE
Which is a bit confusing, but then later: FOR NONCOMMERCIAL PURPOSES ONLYYou can view a mirror of the original release here: https://code.google.com/p/gazellewhatcd/
That isn't the GPLv3. That isn't even a free software license (https://www.gnu.org/philosophy/free-sw.html), since they only grant a license "FOR NONCOMMERCIAL PURPOSES".