summaryrefslogtreecommitdiffstats
path: root/.local/bin/maketorrent
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-14 10:33:04 -0600
committermsglm <msglm@techchud.xyz>2023-01-14 10:33:04 -0600
commit0d05ef1e12314985988e567ac22a179d0f646899 (patch)
treede702ad5f7550a27a6fb982e617363ccaca4fecf /.local/bin/maketorrent
downloadmsglm-dotfiles-0d05ef1e12314985988e567ac22a179d0f646899.tar.gz
msglm-dotfiles-0d05ef1e12314985988e567ac22a179d0f646899.tar.bz2
msglm-dotfiles-0d05ef1e12314985988e567ac22a179d0f646899.zip
Inital Commit
Diffstat (limited to '.local/bin/maketorrent')
-rwxr-xr-x.local/bin/maketorrent10
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"