diff options
Diffstat (limited to '.local/bin/maketorrent')
-rwxr-xr-x | .local/bin/maketorrent | 10 |
1 files changed, 10 insertions, 0 deletions
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" |