Skip to content

Instantly share code, notes, and snippets.

@Latezly
Latezly / hb_xy_dx.m3u
Last active March 13, 2026 17:21
IPTV
123
@Latezly
Latezly / node_exporter_scan.py
Created February 1, 2026 07:40
prometheus_auto_scan
from concurrent.futures import ThreadPoolExecutor, as_completed
from loguru import logger
import json
import threading
import os
import requests
import re
import ipaddress
# ------------------------
#!/bin/bash
set -e
modify_ssh_config() {
sed -i 's/^#\?Port .*/Port 4747/' /etc/ssh/sshd_config
sed -i 's/^#\?PermitRootLogin .*/PermitRootLogin without-password/' /etc/ssh/sshd_config
sed -i 's/^#\?PasswordAuthentication .*/PasswordAuthentication no/' /etc/ssh/sshd_config
if systemctl is-active --quiet ssh; then
systemctl restart ssh
http://tracker.driverpacks.net:6969/stats?mode=tpbs&format=ben
-> per torrent: hash (ben-encoded), complete, downloaded, incomplete
http://tracker.driverpacks.net:6969/stats?mode=tpbs&format=txt
-> per torrent: hash, seeders, leechers
http://tracker.driverpacks.net:6969/stats?mode=statedump
-> per torrent: hash, base (time in minutes since epoch when the torrent last had >0 peers, *60 = unix timestamp), downloaded
@Latezly
Latezly / infohash.py
Last active November 1, 2022 16:21
How to URLdecode info_hash in python
#https://stackoverflow.com/questions/5637268/how-do-you-decode-info-hash-information-from-tracker-announce-request
#https://stackoverflow.com/questions/8088375/how-do-i-convert-a-single-character-into-its-hex-ascii-value-in-python
#https://gist.github.com/dirkomatik/2274843
#https://blog.csdn.net/iodoo/article/details/49175749
#info_hash = "m%cdh%f6%18%f0k%a9O%04%60%9f%3ek%03%91%9a%9a%0b%88"
info_hash = input('Enter http hash:')#like that↑
hash = ""
i = 0
#!/bin/bash
set -e
set -x
mkdir ~/transmission
cd ~/transmission
PREFIX=/opt