replacing curl with wget

In the old days, curl was installed by default by a new installation and wget needed to be added.

Now it’s the other way around. I got fed up with this and figured out how to modify my old scripts to use wget.

open(CURLY, "/usr/bin/curl -kfs https://copier.lan/status/statgeneral.htm|")
    or die "Can't curl: $!";

curl writes to stdout by default. k for insecure https connection, f for fail silently, s for silent.

open(CURLY, "/usr/bin/wget --no-check-certificate -qO - https://copier.lan/status...
    or die "Can't curl: $!";

wget writes to a file by default. --no-check-certificate for insecure https connection, q for quiet, O - to write the data to stdout.

let’s encrypt: https_proxy systemd

On a Debian Stretch system at work, certbot was working but automatic renewals were not. The system is behind a proxy server and the https_proxy environment variable was not being set when certbot ran unattended.

I wasted several hours tinkering with /etc/cron.d/certbot before I realized that

0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(3600))' && certbot -q renew

was preventing certbot from running if systemd was running.

Edit /lib/systemd/system/certbot.service Add to the [Service] section:

Environment="https_proxy=https://my_proxy_server:port" "http_proxy=http://my_proxy_server:port"

systemctl daemon-reload

So that the file is actually read.

Docs on this file at man systemd.exec search Environment=

Nexus 5X SAR

The SAR for Nexus 5X is very hard to find on the web.

Go to http://www.lg.com/global/support/sar/sar. In the boxes at the bottom of the page, — Select Category — Mobile Phone, then search on LG-H790.

Results I get are:

-Europe & Middle East & Africa & Asia & Oceania

The highest SAR value for use at the ear is 0.607 W/kg (10 g) and when worn on the body is 0.397 W/kg (10 g) at 15mm

-USA & Canada

The highest SAR value for use at the ear is 1.25 W/kg (1 g) and when worn on the body is 1.28 W/kg (1 g) at 10mm

The FCC Grantee Code is ZNF, Product Code H790. Search here for much too much to sift through: https://www.fcc.gov/general/fcc-id-search-page