diff --git a/docs/cheatsheet.md b/docs/cheatsheet.md index 71030e7..3188a49 100644 --- a/docs/cheatsheet.md +++ b/docs/cheatsheet.md @@ -55,3 +55,21 @@ cd .. # parent directory ctrl+r # fzf history search ctrl+t # fzf file finder ``` + +## save websites + +```bash +# одна страница в single html (с CSS+JS) +monolith https://example.com -o page.html + +# рекурсивно целый сайт +wget -r -p -k --no-clobber example.com + +# GUI для рекурсивного скачивания +httrack "https://example.com" -O ./out "+*.example.com/*" +``` + +примеры: +- nixos options: `monolith https://search.nixos.org/options -o options.html` +- сохранить доки: `wget -r -p -k nix-darwin.github.io/nix-darwin/manual/` +- monolith и httrack ставятся через `brew install monolith httrack`