Skip to content

Instantly share code, notes, and snippets.

View kghbln's full-sized avatar
🐇
Tempus ipsum affert consilium.

Karsten Hoffmeyer kghbln

🐇
Tempus ipsum affert consilium.
View GitHub Profile
@kghbln
kghbln / cleanupUsersWithNoId.php
Created March 22, 2023 10:28 — forked from ciencia/cleanupUsersWithNoId.php
cleanupUsersWithNoId.php REL1_35 uncyclopedia fixes
<?php
/**
* Cleanup tables that have valid usernames with no user ID
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@kghbln
kghbln / Creating a static copy of a dynamic website.md
Last active February 27, 2023 17:31 — forked from azizur/Creating a static copy of a dynamic website.md
Creating a static copy of a dynamic website

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.