Skip to content

Instantly share code, notes, and snippets.

@paxperscientiam
Created February 18, 2017 18:36
Show Gist options
  • Select an option

  • Save paxperscientiam/25df82e5d02ddc6f1483e4d8fd9c8430 to your computer and use it in GitHub Desktop.

Select an option

Save paxperscientiam/25df82e5d02ddc6f1483e4d8fd9c8430 to your computer and use it in GitHub Desktop.
Warm that cache with GNU Wget
#!/opt/local/bin/bash
warm () {
url="${1}"
wget -nd -r -l 2 -e robots=off --delete-after "${url}"
}
warm "$@"
@paxperscientiam
Copy link
Copy Markdown
Author

DISCLAIMER:
Do not blindly execute code you find on the Internet.

USE ARE YOUR OWN PERIL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment