Skip to content

Instantly share code, notes, and snippets.


Jonathan Willing jwilling

View GitHub Profile
# Some things taken from here
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until script has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
You can’t perform that action at this time.