I’m starting a new category of posts called “Code Snippets” where I share code I find interesting.
In this first installment is a simple code snippet I originally wrote in Powershell to scan a local port continuously and do something when the port is found:
function deploy():
if ( port_exists(port) ):
do_something()
else:
deploy()
deploy(…