James McDonald

gLabels Build Script for Ubuntu 18+

I think the default Ubuntu GLabels package doesn't contain one of the barcode libraries I use to create labels so this is the script I use to compile glabels #!/bin/sh sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list apt-get install cmake apt-get -y build-dep...

QNAP 4.3 QVPN Service on Android

I'm using the OpenVPN Connect client on Android and using the QNAP created VPN file with a few small changes: # added so the OpenVPN Connect client doesn't # complain about missing client cert client-cert-not-required # I uncheck the Use remote network as default...

How to get crowd consensus with Virus Scanning

Evaluating Software from the Internet Recently I've been evaluating software for personal and client use Today Operating Systems tend to have a severe level of distrust toward software downloaded from random locations and you have to explicitly bypass restrictions to...

The REST API encountered an error

The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages. The REST API request failed due to an error.Error: cURL error 28: Operation...

Moved from Telstra to TPG

So I've just moved from Telstra to TPG The same bandwidth and data for 69.99 down from $90 for the Telstra service. $20 a month difference The service is an NBN50. The bandwidth for both seems to be similar with the typical up and downs observed due to the contended...

Another option for UPS Vendor

For years I have been using APC or Dell branded UPS's but recently someone installed a different brand on a site I do some work for. So just thought I would post a link on my blog so I can come back to it when quoting UPS options https://www.eaton.com/au/en-gb.html...

How to enable ZipArchive on PHP 7.4

Ubuntu / Debian Find the extension version you want to install # install apt-get install php7.4-zip # enable it phpenmod -v 7.4 zip # check it is enabled php7.4 -i | grep -i zip # restart any services such as php7.4-fpm.service to pick up the change systemctl restart...

Automate Chrome with Puppeteer

https://github.com/puppeteer/puppeteer Every now and again I need to connect to a website and then scrape something so I don't have to do a couple of hundred repetitive actions Enter Puppeteer You can basically get Chrome to do whatever you want using puppeteer and...

glabels-3-batch to /dev/stdout to LPR Printer

Unfortunately the following doesn't work because the informational output gets mixed with the PDF output. As you can see here Object w = etc I have been doing a two step glabels-3-batch to LPR process but have made it so I don't have to write an intermediate file to...