aly / deluge-downloading.py
0 likes
0 forks
1 files
Last active
A script that lists currently downloading torrents in Deluge. Uses deluge-client and hurry.filesize from pypi
| 1 | #!/usr/bin/env python3 |
| 2 | def sec(s): |
| 3 | m,s = divmod(int(s), 60) |
| 4 | h,m = divmod(m,60) |
| 5 | return "%d:%02d:%02d" % (h,m,s) |
| 6 | |
| 7 | def convert(data): |
| 8 | if isinstance(data, bytes): return data.decode('ascii') |
| 9 | if isinstance(data, dict): return dict(map(convert, data.items())) |
| 10 | if isinstance(data, tuple): return map(convert, data) |
aly / portopen.php
0 likes
0 forks
1 files
Last active
A script to check if a given port is open on the connecting host. IP ranges included are for cloudflare, replace with an array containing your proxy server IP ranges
| 1 | <?php |
| 2 | // A script to check if a given port is open on the connecting host. |
| 3 | // IP ranges included are for cloudflare, replace with an array containing your proxy server IP ranges |
| 4 | // https://b303.me/portopen.php?port=80 |
| 5 | header("Content-Type: application/json"); |
| 6 | header("Access-Control-Allow-Origin: *"); |
| 7 | function cidr_match($ip, $ranges) { |
| 8 | $out = array(); |
| 9 | foreach ($ranges as $range) { |
| 10 | list ($subnet, $bits) = explode('/', $range); |
aly / gameservers.py
0 likes
0 forks
2 files
Last active
A script to log into Steam and list game servers
| 1 | #!/usr/bin/env python |
| 2 | from __future__ import print_function |
| 3 | import sys |
| 4 | |
| 5 | try: |
| 6 | import requests |
| 7 | from bs4 import BeautifulSoup as Soup |
| 8 | from Crypto.PublicKey import RSA |
| 9 | from Crypto.Cipher import PKCS1_v1_5 |
| 10 | import yaml |
aly / krpanodl.py
0 likes
0 forks
1 files
Last active
A script to download images from a krpano. Made for the CNN gigapixel panorama of Trump's inauguration
| 1 | cubelabels = "fblrud" |
| 2 | levels = ["l"+i for i in range(1,8)] |
| 3 | skipped = 0 |
| 4 | for s in cubelabels: |
| 5 | for l in levels: |
| 6 | for v in range(1,999): |
| 7 | for h in range(1,999): |
| 8 | req = requests.get("http://europe.tiles.fanpic.co/749-2017-cnn/mres_{s}/{l}/{v}/{l}_{s}_{v}_{h}.jpg".format(s=s,l=l,v=v,h=h), stream=True) |
| 9 | if req.status_code == 200: |
| 10 | with open("{l}_{s}_{v}_{h}.jpg".format(s=s,l=l,v=v,h=h), "wb") as f: |