Skip to content

Instantly share code, notes, and snippets.

@corpix
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corpix/9764098 to your computer and use it in GitHub Desktop.
Save corpix/9764098 to your computer and use it in GitHub Desktop.
curl -I http://corpix.ru 2>/dev/null | grep Last-Modified | sed 's/.\+: //' | xargs node -e 'd=new Date(process.argv.slice(1).join(" "));e=new Date(Date.now()-10*1000);process.exit(d.getTime()>e.getTime()?0:1)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment