Skip to content

Instantly share code, notes, and snippets.

View sylfabre's full-sized avatar

Sylvain sylfabre

View GitHub Profile

The command line, in short…

wget -k -K -E -r -l 10 -p -N -F --restrict-file-names=windows -nH http://website.com/

…and the options explained

  • -k : convert links to relative
  • -K : keep an original versions of files without the conversions made by wget
  • -E : rename html files to .html (if they don’t already have an htm(l) extension)
  • -r : recursive… of course we want to make a recursive copy
  • -l 10 : the maximum level of recursion. if you have a really big website you may need to put a higher number, but 10 levels should be enough.
@sylfabre
sylfabre / Dockerfile
Created April 11, 2022 10:21
Market asset.sh
FROM ubuntu:20.04
RUN apt update && apt install -y \
locales \
nano \
software-properties-common \
sudo \
wget
# 1000 is the user on the host machine
@sylfabre
sylfabre / Dockerfile.php8
Last active January 7, 2026 10:05
Docker setup
FROM ubuntu:latest
# Variables
ENV TZ=Europe/Paris
ENV PHP_VERSION=8.4
# Timezone configuration
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt update && apt install -y \