From 0d05ef1e12314985988e567ac22a179d0f646899 Mon Sep 17 00:00:00 2001 From: msglm Date: Sat, 14 Jan 2023 10:33:04 -0600 Subject: Inital Commit --- .local/bin/maketorrent | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .local/bin/maketorrent (limited to '.local/bin/maketorrent') diff --git a/.local/bin/maketorrent b/.local/bin/maketorrent new file mode 100755 index 0000000..dc4f4bd --- /dev/null +++ b/.local/bin/maketorrent @@ -0,0 +1,10 @@ +#!/bin/sh + +#Description: Takes in files and makes torrents for them. Outputs the torrent file to the /tmp/ directory. Gets latest public torrent trackers using a curl command for effective distribution. + +#Axioms: + +#Dependencies: https://packages.debian.org/sid/mktorrent https://packages.debian.org/sid/curl + + + mktorrent -v -a udp://tracker.coppersurfer.tk:6969/announce -a udp://tracker.opentrackr.org:1337/announce -a $(curl https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all_udp.txt |sed -e '/^$/d'|shuf|head -1) -o "/tmp/$1.torrent" -n "$1" "$1" -- cgit v1.2.3