paulgorman.org

< ^ txt

Fri Jun 15 09:17:58 EDT 2018 Slept from eleven to seven. Woke briefly around four. High of eighty-four today, with increasing clouds. Stopped at Starbucks on my way to work. Work: - Centralized logging for thin clients? Considered. Yes, probably. - 2 PM IT strategy meeting with Julie Done. Twenty-minute walk at lunch. Hot, but not as hot as I feared. Ha: ``` --- gab ~ $ cat /usr/lib/cgi-bin/asterisk/is-julie-on-the-phone #!/bin/sh set -uf p=138 n=Julie /usr/sbin/asterisk -x "pjsip show endpoint $p" | grep -q 'Not in use' c="$?" echo "Content-type: text/html" echo "" echo '<html>' echo '<head>' echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' echo '<meta http-equiv="refresh" content="5">' echo "<title>Is $n On A Call?</title>" echo '</head>' echo '<body>' if [ "$c" -ne 0 ]; then echo "<h1>Yes</h1><p>Yes, $n is on a call.</p>" else echo "<h1>No</h1><p>No, $n is not on a call.</p>" fi echo '</body>' echo '</html>' exit 0 ``` Home: Breakfast: sausage sandwich, cafe latte Lunch: chicken wrap, coffee Dinner:

< ^ txt