Skip to content

Instantly share code, notes, and snippets.

@hyamamoto
Created July 29, 2016 01:46
Show Gist options
  • Save hyamamoto/ccf4b52f43dd98058ee3e644db5e0256 to your computer and use it in GitHub Desktop.
Save hyamamoto/ccf4b52f43dd98058ee3e644db5e0256 to your computer and use it in GitHub Desktop.
A little Windows batch script that restarts THE THING every 60 min.
@echo off
:loop
evil_substance.exe
timeout /t 3600 >null
Taskkill /F /IM evil_substance.exe >null
goto loop

Rasmus Lerdorf the most wondrous (the creat'r of php) once hath said to us.

The real programmers will say "Yeah it works but you're leaking memory everywhere. Perhaps we should fix that." I’ll just restart Apache every 10 requests.

so beest t.

oh, so beest t.

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