Skip to content

Instantly share code, notes, and snippets.

@Mau5Machine
Mau5Machine / docker-compose.yml
Last active July 17, 2025 20:13
Traefik Configuration and Setup
version: "3.3"
services:
################################################
#### Traefik Proxy Setup #####
###############################################
traefik:
image: traefik:v2.0
restart: always
@CTimmerman
CTimmerman / file_downloader.py
Last active September 8, 2024 08:40
Resume HTTP download proof of concept (POC) / minimum viable product (MVP). Let unstable internet be no problem working with pip on the road, please.
"""Download with automatic resume.
2018-06-28 v1.0 by Cees Timmerman
2018-07-09 v1.1 Added If-Unmodified-Since header for consistency."""
import os, shutil, sys, time
import requests # python -m pip install requests
def download_file(url, local_filename=None):
if not local_filename:
local_filename = url.split('/')[-1]