Skip to content

Instantly share code, notes, and snippets.

View smyhlin's full-sized avatar
💤
Sleep

Sergii smyhlin

💤
Sleep
View GitHub Profile
python -c "import socket; s = socket.socket(); s.bind(('', 0));print(s.getsockname()[1]);s.close()"
@smyhlin
smyhlin / run_lampa_server.py
Last active March 2, 2024 18:51
Locally run http Lampa server on your local PC on 8000 port
## [Lampa](https://github.com/yumata/lampa) - online cinema and torrent catalog
## Torent files(movies) can be streamed throught [TorrServe](https://github.com/YouROK/TorrServer) application
import http.server
import os
import sys
import socketserver
import time
import requests
from zipfile import ZipFile