How to enable ZipArchive on PHP 7.4

yum install php-zip # restart Apache or php-fpm This is on CentOS Linux release 7.7.1908 (Core) You will know you have it installed properly when you run the following code and it returns true <?php // enter this in a file such as phpzip.php...

read more

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...

read more

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...

read more

CUPS-PDF Printing Images not searchable PDF

I have a cups-pdf printer that takes the output from glabels-3-batch # Using glabels-3-batch results in a PDF you can select and copy the text from cat merge.csv | glabels-3-batch -i - -o out.pdf 100x50sample.glabels The PDF file which glabels-3-batch creates can be...

read more

Advanced git

https://youtu.be/duqBHik7nRo Just putting this here for later. A git talk that covers everything that I wonder about with git. Also the speaker has a book which going by her previous courses will be excellent.

read more