Scripts for website related stuff

Local server maintenance

My server (Nginx) has a default location to serve webpages from that I can't access freely, I call this the "server root". I made a mirror directory to build and edit pages for it, I call this "home root". Should I have Apache installed, it would have a location like Nginx, I call that one "apache root". I made a couple of scripts for these:

binfab www.edit

edit indicated file(s) in home root

binfab www.copy

copy indicated file(s) from home root to server root

binfab www.link

copy indicated symlink(s) from home root to server root

binfab www.list-wwwroot

list files in server root

binfab www.edit-apache

edit indicated file in apache root (if I had one) as-if edited directly

binfab www.list-apache

list files in apache root

binfab www.permits

reset permits for dirs/files under web-accessible root (in the past I needed this a couple of times, originally created under the name "chmodrecursive")

Maintenance for sites built with Rst2HTML

This warrants some more explanation and is described elsewhere.

Miscellaneous

binfab www.startapp

start "progressive webapp" created from webpage

binfab www.update-sites

update mydomains database and localhost/sites.html from /etc/hosts