Created
November 2, 2012 02:09
-
-
Save chx/3998244 to your computer and use it in GitHub Desktop.
Initiate test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /tmp/serverlist | |
| for i in * ; do scp /var/www/$1.torrent $i:torrent/watch/ ; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /usr/local/bin/extract | |
| #!/usr/bin/python | |
| import libtorrent as lt | |
| import sys | |
| torrent = open(sys.argv[1], 'rb').read() | |
| print str(lt.torrent_info(torrent, len(torrent)).info_hash()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /usr/local/etc/opentracker/opentracker.conf | |
| listen.tcp_udp 10.181.4.207:6969 | |
| access.whitelist /whitelist | |
| tracker.rootdir /usr/local/etc/opentracker | |
| tracker.user nobody |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /usr/local/bin/prepare | |
| cd /var/www | |
| rm -f $1.torrent | |
| rm -rf $1/.git | |
| mkdir tests | |
| distribute $1 | |
| mktorrent -a http://10.181.4.207:6969/announce $1 | |
| extract $1.torrent >> /usr/local/etc/opentracker/whitelist | |
| killall -1 opentracker | |
| mkdir /root/results/$1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment