diff options
Diffstat (limited to 'tracker.jordan.im')
-rw-r--r-- | tracker.jordan.im/Makefile | 14 | ||||
-rw-r--r-- | tracker.jordan.im/index.7 | 27 | ||||
-rw-r--r-- | tracker.jordan.im/index.html | 54 | ||||
-rw-r--r-- | tracker.jordan.im/style.css | 23 | ||||
-rwxr-xr-x | tracker.jordan.im/update-stats.py | 55 |
5 files changed, 0 insertions, 173 deletions
diff --git a/tracker.jordan.im/Makefile b/tracker.jordan.im/Makefile deleted file mode 100644 index 8ebf663..0000000 --- a/tracker.jordan.im/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -WEBROOT = /var/www/html/tracker.jordan.im - -FILES = index.html style.css - -all: ${FILES} - -index.html: index.7 - mandoc -T html -O style=style.css index.7 > index.html - -install: ${FILES} - install -c -m 644 ${FILES} ${WEBROOT} - -clean: - rm -f index.html diff --git a/tracker.jordan.im/index.7 b/tracker.jordan.im/index.7 deleted file mode 100644 index 033aebc..0000000 --- a/tracker.jordan.im/index.7 +++ /dev/null @@ -1,27 +0,0 @@ -.Dd November 11, 2021 -.Dt TRACKER.JORDAN.IM 7 -.Os "Debian" -. -.Sh NAME -.Nm tracker.jordan.im -.Nd a free and open bittorrent tracker -. -.Sh ANNOUNCE -udp://tracker.jordan.im:6969/announce -. -.Sh STATS -. -.Pp -The tracker has been ... [ stats to be generated ] -. -.Sh DESCRIPTION -. -.Pp -This is a service known as a -.Lk https://jordan.im/ipfs/bafybeiaysi4s6lnjev27ln5icwm6tueaw2vdykrtjkwiphwekaywqhcjze/wiki/BitTorrent_tracker "bittorrent tracker", -which coordinates the reliable transmission of information between peers. -. -.Pp -There is very little to be found here. There are no indexes or search boxes. You need to speak the -.Lk https://www.bittorrent.org/beps/bep_0003.html "bittorrent protocol" -and have knowledge of a hash to make use of this service. diff --git a/tracker.jordan.im/index.html b/tracker.jordan.im/index.html deleted file mode 100644 index 41ccd88..0000000 --- a/tracker.jordan.im/index.html +++ /dev/null @@ -1,54 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8"/> - <meta name="viewport" content="width=device-width, initial-scale=1.0"/> - <link rel="stylesheet" href="style.css" type="text/css" media="all"/> - <title>TRACKER.JORDAN.IM(7)</title> -</head> -<body> -<table class="head"> - <tr> - <td class="head-ltitle">TRACKER.JORDAN.IM(7)</td> - <td class="head-vol">Miscellaneous Information Manual</td> - <td class="head-rtitle">TRACKER.JORDAN.IM(7)</td> - </tr> -</table> -<div class="manual-text"> -<section class="Sh"> -<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1> -<code class="Nm">tracker.jordan.im</code> — -<div class="Nd">a free and open bittorrent tracker</div> -</section> -<section class="Sh"> -<h1 class="Sh" id="ANNOUNCE"><a class="permalink" href="#ANNOUNCE">ANNOUNCE</a></h1> -udp://tracker.jordan.im:6969/announce -</section> -<section class="Sh"> -<h1 class="Sh" id="STATS"><a class="permalink" href="#STATS">STATS</a></h1> -The tracker has been online for 308 hrs, serving 787590 torrents with 1984 connections per second. -</section> -<section class="Sh"> -<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1> -This is a service known as a - <a class="Lk" href="https://jordan.im/ipfs/bafybeiaysi4s6lnjev27ln5icwm6tueaw2vdykrtjkwiphwekaywqhcjze/wiki/BitTorrent_tracker">bittorrent - tracker</a>, which coordinates the reliable transmission of information - between peers. -<p class="Pp">There is very little to be found here. There are no indexes or - search boxes. You need to speak the - <a class="Lk" href="https://www.bittorrent.org/beps/bep_0003.html">bittorrent - protocol</a> and have knowledge of a hash to make use of this service.</p> -</section> -<section class="Sh"> -<h1 class="Sh" id="GRAPHS"><a class="permalink" href="#GRAPHS">GRAPHS</a></h1> -<img src="cpu.png" alt="cpu usage graph"> -<img src="net.png" alt="net usage graph"> -</div> -<table class="foot"> - <tr> - <td class="foot-date">November 11, 2021</td> - <td class="foot-os">Debian</td> - </tr> -</table> -</body> -</html> diff --git a/tracker.jordan.im/style.css b/tracker.jordan.im/style.css deleted file mode 100644 index 2524976..0000000 --- a/tracker.jordan.im/style.css +++ /dev/null @@ -1,23 +0,0 @@ -table.head, table.foot { width: 100%; } -td.head-rtitle, td.foot-os { text-align: right; } -td.head-vol { text-align: center; } -div.Pp { margin: 1ex 0ex; } -div.Nd, div.Bf, div.Op { display: inline; } -span.Pa, span.Ad { font-style: italic; } -span.Ms { font-weight: bold; } -dl.Bl-diag > dt { font-weight: bold; } -code.Nm, code.Fl, code.Cm, code.Ic, code.In, code.Fd, code.Fn, -code.Cd { font-weight: bold; font-family: inherit; } - -html { font-family: monospace; line-height: 1.25em; } -body { max-width: 80ch; margin: 1em auto; padding: 0 1ch; } -table { border-collapse: collapse; } -table.Nm code.Nm { padding-right: 1ch; } -table.foot { margin-top: 1em; } - -html { background-color: var(--ansi16); color: var(--ansi17); } -a { color: var(--ansi4); } -a:visited { color: var(--ansi5); } -a.permalink { color: var(--ansi3); text-decoration: none; } - -img { max-width: 80ch; width: 100%; height: auto; } diff --git a/tracker.jordan.im/update-stats.py b/tracker.jordan.im/update-stats.py deleted file mode 100755 index f0a1ec7..0000000 --- a/tracker.jordan.im/update-stats.py +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env python3 - -import fileinput -import os -import shutil -import sys -import urllib.request - -WWW = '/var/www/html/tracker.jordan.im' - -stats = dict.fromkeys(['torrents', 'connections', 'uptime']) - -conn = urllib.request.Request( - 'http://127.0.0.1:6969/stats?format=txt&mode=conn', -) -r = urllib.request.urlopen(conn).read().decode('utf-8').split('\n') - -stats['uptime'] = int(int(r[2].split()[0]) / 3600) -stats['connections'] = r[3].split()[2] - -conn = urllib.request.Request( - 'http://127.0.0.1:6969/stats?format=txt' -) - -r = urllib.request.urlopen(conn).read().decode('utf-8').split('\n') - -stats['torrents'] = r[2].split()[2] - -s = ( - f'The tracker has been online for {stats["uptime"]} hrs, ' - f'serving {stats["torrents"]} torrents ' - f'with {stats["connections"]} connections per second.\n' -) - -for line in fileinput.input([os.path.join(WWW, 'index.html')], inplace=True): - if line.strip().startswith('The tracker has been'): - line = s - sys.stdout.write(line) - -cpu = 'https://service.greenhost.net/cloud/Instance/graph?id=7615&template=cpu&timeframe=24' -conn = urllib.request.Request(cpu) -conn.add_header('Cookie', 'PHPSESSID=XXXXXXXXXXXXXXXXXXXXXXXXXX') - -with urllib.request.urlopen(conn) as r, open(os.path.join(WWW, 'cpu.png'), 'wb') as out: - out.write(r.read()) - -net = 'https://service.greenhost.net/cloud/Instance/graph?id=7615&template=net1&timeframe=24' -conn = urllib.request.Request(net) -conn.add_header('Cookie', 'PHPSESSID=XXXXXXXXXXXXXXXXXXXXXXXXXX') - -with urllib.request.urlopen(conn) as r, open(os.path.join(WWW, 'net.png'), 'wb') as out: - out.write(r.read()) - -#import code -#code.interact(local=locals()) |