paulgorman.org

< ^ txt

Sat Sep 3 05:22:04 EDT 2016 Fell asleep a little after eleven. Woke up around 4:30, and just didn't feel tired enough to go back to sleep. I'll probably take a nap later. Yet another blacklist munging fix-up. Note the clever use of command substitution for inline comments (a trick I found on the web). Command substitution comments may be a little expensive for performance though. cat /tmp/dg-ads.acl /tmp/dg-malicious.acl | sort | uniq \ | cat - /var/unbound/whitelist /var/unbound/whitelist | sort | uniq -u \ | sed 's/^\.//' `# Strip starting dots (e.g. ".example.com")` \ | sed '/^\s*$/d' `# Delete blank lines` \ | sed '/^#.*/d' `# Delete comments` \ | awk '{print "local-zone: \""$1"\" refuse"}' \ | sed '1 i\ server: ' > /var/unbound/conf.d/blacklist.conf Watched the Wicker Man remake on Netflix. A stinker, and not in a fun way. Watched They're Watching, which was fun. Took my nap from around noon to three. Vacuumed, watered plants, etc. Forty minute walk in the early evening. Mostly sunny and not too hot. Heard the crickets and cicada. Saw some pigeons, little brown jobs, seagulls, and a hornet. Stopped for a cappuccino. Watched a bit of a BBC WWI dramatic reenactment series called Our World War. Good music, including a P.J. Harvey track. Hmm. The Netflix app seems to crash if it can't resolve various akamai.net domains. Breakfast: chicken pot pie Lunch: left-over pizza Dinner: carrots, macaroni and cheese

< ^ txt