Create a dot desktop file ( ~/.config/autostart/start-windows-10.desktop) [Desktop Entry] Name=Run Windows 10 Pro at Login GenericName=windows-10-start Comment=Run Windows 10 Pro at Login Exec=vmrun -T ws -vp "Your-VM-Password" start...
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...
Send-MailMessage not able to send an email through Office 365 using App Password
Send-MailMessage & App Password Doesn't Work So today I tried to test SMTP Auth using Powershell $appPassword = 'my_app_password_here' $From = "[email protected]" $To = "[email protected]" [securestring]$secStringPassword = ConvertTo-SecureString $appPassword...
Greenshot – Makes documentation easier
I take lots of screenshot per day. Greenshot is a handy utility that makes that very easy. I find it useful for: capturing the settings in configuration dialogs, creating step by step how to's and documenting before and after changes....
Don’t buy the Apple M1 Macbook if you want to run x86 Windows on VMWare Fusion
Just a warning to myself and others. If you want to run a Windows x86 Virtual Machine on a Macbook using VMWare Fusion or similar virtualization products. Buy a Macbook with an x86 Processor. The Apple M1 is an ARM archictectured processor and while there will...
How to trouble shoot your Unifi UDM Internet Connection
I have a HFC NBN service with TPG I use a Ubiquiti UniFi Dream Machine Wireless Router to connect to a TPG NBN business plan The first indication of a problem Got up this morning and my Android phone had the "no internet" exclamation mark on the WiFi Icon Checking UDM...
Synology – Power Restore Settings
If you want your Synology to restart after a power failure remember to set the recovery options: "Restart automatically when power supply issue is fixed"
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:...
Remove the Mail App – Intune PowerShell Script
Create this script and run it in user context I called my script RemoveMailApp.ps1 # Important: set to run this in user context Get-AppxPackage Microsoft.windowscommunicationsapps | Remove-AppxPackage
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...
Run Shell Commands from the MySQL Client
Saw a post that says you need to put a ! to run a shell command in the MySQL but found in my mysql client that it was \! <shell-command-here> https://electrictoolbox.com/shell-commands-mysql-command-line-client/ To drop to a shell. use \! bash To return to the the...
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...
CakePHP 4 Time Zones
Display time part only using IntlDateFormatter constants
Despite Google I couldn't find this. How to display the time part only using CakePHP 4 <?php include_once('../../vendor/autoload.php'); use Cake\I18n\FrozenTime; $now = new FrozenTime(); echo "Time only\n"; echo $now->i18nFormat(...
CakePHP 4 incorrect test table names created from Fixtures
Leaving this here as I just spent an annoying hour trying to figure out why my tests were failing. CakePHP Version: 4.2.5 Platform and Target: Ubuntu 20.04, Apache/2.4.41 (Ubuntu), Mysql 8.0.23-0ubuntu0.20.04.1, PHPUnit 8.5.15 What I was doing I was running CakePHP 4...
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...