Skip to content

Instantly share code, notes, and snippets.

@0x4a
Last active August 11, 2017 04:24
Show Gist options
  • Save 0x4a/3d8125920add75dc8f03b9b5ca994949 to your computer and use it in GitHub Desktop.
Save 0x4a/3d8125920add75dc8f03b9b5ca994949 to your computer and use it in GitHub Desktop.
get the first 100 bytes of a webpage every minute
@ECHO OFF
:loop
SET timestamp=%time:~0,2%-%time:~3,2%-%time:~6,2%
set timestamp=%timestamp: =0%
curl.exe -s -k https://www.google.com | head -c 100 > curl_%timestamp%.html
ECHO saved: %timestamp%
sleep 60
GOTO loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment