IT Tips

Intune Powershell Scripts – Encoding Gotcha

Just had a powershell script that was failing When I went in to the registry key that stores the results of the script running I saw some corrupted characters The problem turned out to be I had a file that was encoded in UTF-16LE So I saved the powershell script as...

CakePHP/Queue WorkerListener Example Class

This is an example of implementing a WorkerListener class for the new CakePHP/Queue plugin as mentioned here => https://book.cakephp.org/queue/1/en/index.html#worker-events Config array // ... 'Queue' => [ 'default' => [ // A DSN for your configured backend. default:...

Encrypt / Decrypt the columns of your CakePHP 4 DB

https://stackoverflow.com/a/32261210/9230077 The above is a good solution, but it needed updating to work with CakePHP 4 I have updated the above as below to encrypt a database field with a base64 encoded encrypted string The base64 encoding is so it can save in a...

VSCode – XDebug 3 – MacOS – Docker Desktop

My setup MacOS Big Sur version 11.2.3 (20D91)VSCode version: 1.56.0 with felixfbecker.php-debug (v1.15.1) extension installedDocker Desktop 3.3.1 (63152)Docker container running Ubuntu 20.04 Apache, PHP 7.4.3 and Xdebug v3.0.4 Because I was running php-fpm on my...

Glabels 3.4.1 Build Script for Ubuntu 20.04

Why not use the default Ubuntu package? Ubuntu was missing some of the Barcode libraries I use. Not sure if this is still true for Ubuntu 20.04 but I still build it from scratch because I use it in docker image for development This will build Glabels 3.4.1 from what I...

Toggen deploys a new website

So I have built and hosted a new website for Roger Clark Pest Management they are a family owned and operated Pest Control and Management business in Maitland NSW Australia It uses Wordpress and the Divi theme with one of the many layouts that are provided by the...

WizTree

Just downloaded WizTree (not a sponsor) from https://wiztreefree.com/ It seems to do what it says on the tin which is the ability to quickly view the size of all files and folders visually. I've given a donation which turns off the donation messages seen in exports...