< ^ txt
Wed May 18 09:47:46 EDT 2016
Slept from eleven-something to six-something.
Sunny. High of sixty-four.
Goals:
Work:
- Try to wrap up HZ phantom spam issue
Done?
I've haven't managed to dig up a scrap of evidence that there's a real problem.
We've tightened down a few firewall rules.
I submitted a request for more info through the Mailspike contact form, but I'm not optimistic.
- Finish fixing SquidGuard
Done, I think.
Things are more sane since pfSense switched to using FreeBSD packages.
- "Cyber" insurance questionnaire for Joy
Done.
- Order SIP phones
Done.
Took a twenty-five minute walk at lunch. Sunny and pleasant. Saw a bunch of robins, a pair of bluejays, a turnkey vulture, a morning dove, and a couple of woodpeckers. All the threes that have been in bloom the past few weeks have dropped their flowers.
Home:
- Work on static site build script
Done, a bit.
I think I do want the input/source content if a repo with the build script.
On clyde, we'll do `ln -s /var/repo /home/paulgorman/repo`.
I was thinking of moving the css, js, cache, etc directories up, out of the .build directory, but I'll probably leave them alone since they'll be copied to the output location at `/var/www/example.org/diary/`.
Last night, Ike Levy did a second, mini presentation of his "three finger claw" technique for shell programming.
http://blackskyresearch.net/try.sh.txt
http://www.nycbug.org/event/10640/shell-fu.20160203.pdf
#!/bin/sh
yell() { echo "$0: $*" >&2; }
die() { yell "$*"; exit 111; }
try() { "$@" || die "cannot $*"; }
# using it
try cd /some/place
try tar xzvfp /another/place/stuff.tbz
true
We get a couple of advantages with this technique:
- If /some/place doesn't exist, we safely exit before untar.
- We'll get the actual error in STDERR (e.g. "no such file or directory") rather than a generic failure for the whole shell script.
Another twenty-five minute walk after I got home from work. Clouding up a little, but still nice. Heard a crow make an unusual rattling marimba-like call.
< ^ txt