I find myself doing a bunch of these tasks all the time in Debian, time to script them