Email GPG signed messages to notes@joe.milbourn.org.uk or what ever. If signature verifies publish. Markup with rest/markdown.

First entry: read events from socket, e.g. /var/run/acpid.socket:

while 1; 
do 
    zsocket /var/run/acpid.socket; 
    read -u$REPLY; 
    echo $REPLY;
done

Second entry: determine location and therefore proxy from the dns namespace allocated via dhcp:

DOMAIN=$(cat /etc/resolv.conf | grep search | cut -d " " -f 2)

case $DOMAIN in
    "dur.ac.uk") proxy="http://wwwcache.dur.ac.uk:8080/";;
    *) proxy="";;
esac

export http_proxy=$proxy
export https_proxy=$proxy