The Trait <?php declare(strict_types=1); namespace App\Lib\Help\Traits; trait HelpServiceShellExecTrait { protected function shellExec(string $cmd) { // redirect stderr so we can see the output // if the command fails return trim((string) shell_exec(sprintf('%s...
IT Tips
How to create a one-line Powershell command in Task Scheduler
In this example I am creating a task to restart a service without first creating and calling a batch script (.bat, .cmd) using a powershell one-liner. For example C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command "Restart-Service -Name 'Dhcp'" rem...
Warning Unifi UDM and UDR do NOT Support PoE+
Just had a situation where a newly installed Unifi U7 Pro was plugged into the PoE port on a UDR, it worked but showed a warning message in the Unifi UI (See following quote and the image below) The access point is connected to a port, which does not supply sufficient...
Alternative to pgAdmin4 on Arm 64 Linux
I have an instance of Arm 64 Ubuntu 24.04 running inside VMWare Fusion on a Macbook Pro M1 Pgadmin4 is NOT available in an arm64 build So an alternative is DBeaver Download and untar the ARM 64 version...
Mailpit a good upgrade from Mailhog
So I've been using mailhog to catch my development emails for a few years. But noticed that some of the inline images weren't rendered in the mailhog GUI and the mailhog docker image hadn't been updated for a few years So I've switched to Mailpit which seems to have a...
Zebra Print Language – GS1 Online Testing
Go here to view the compiled results of your ZPL https://labelary.com/viewer.html Print the above to PDF / PNG and then upload a graphic of it to. To see the tokenized results of the barcode. https://www.aidecoder.com The above will not tell you if you have valid...
Template Change
Today I changed my Divi template to the "Simple" layout theme. As part of the change I removed a number of pages including web hosting and other offerings. I retained my certifications and services pages. Some services websites drive business but in my case website...
Visio 2019 Installs Onenote 2016 and then Onenote constantly crashes
Latest version of Windows 11 Installed Microsoft 365 apps from my licensed Microsoft Partner Microsoft Action Pack (MAP) by logging into office.com and downloading the Office installer from there. Later installed the MAP software benefit provided Visio 2019 64 bit and...
Toggle IPv6 on and off with powershell
This script elevates to Administrator if needed and then toggles IPv6 support on the adaptor specified depending on what it currently is # Self-elevate the script if required if (-Not ([Security.Principal.WindowsPrincipal]...
FOP-2.9 and BARCODE4J 2.2.4
3 years ago I got Apache FOP working with the Sourceforge version of Barcode4J: https://toggen.com.au/it-tips/implement-sscc-label-printing-using-apache-fop-and-xml/ The source forge version of Barcode4J dates from 2015 it has been forked, is now hosted on Github at...
Greenshot print screen not working ON new Windows 11 install
Installed Greeshot but when pressing Print Screen key I got the default windows screen capture tool instead of Greenshot. The other key combinations launched Greenshot (Ctrl + Print Screen, Alt + Print Screen). The fix: Go into Settings => Accessibility =>...
Give your Windows 11 Workstation a SINGLE Fixed IPv6 ADDRESS
Enabling and Disabling a SINGLE Fixed IPv6 Address ON WINDOWS 11 Do you have an account with a provider that sends an email to you to approve every connection from new IP addresses? Is that provider using IPv6 for their website? Are you IPv6 enabled? Does your IPv6...
Stop RDP from prompting for a Windows Hello PIN
Problem: User complains they are prompted for their Local Windows Hello PIN and then entering that the RDP connection fails to authenticate Work-a-round (too many clicks): At the prompot for a PIN choose More Choices => Use a different account and re-enter your remote...
Can You create an Openvpn Server that will Allow IPV6 Only clients to connect to IPv4 resources
Can a laptop with only an IPv6 address connect to an IPv6 Open VPN server but have an IPv4 address assigned and traverse the IPv6 connection between the IPv6 Laptop and IPv6 OpenVPN Server to access IPv4 Resources running behind the OpenVPN Server? Yes! The motivation...
ICMPv6 Ping to Azure OpnsSense
https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/ipv6-overview The IPv6 overview says as at Sept 2024 ICMPv6 isn't currently supported in Network Security Groups. Not sure this is the right way to do this. But getting an ICMPv6 ping reply from a...
Getting the Azure Agent Running in OpnSense
This is how to install the Azure Agent on OpnSense. https://github.com/Azure/WALinuxAgent/?tab=readme-ov-file#installation Login via SSH or use the Serial console in the Azure Portal. Login as root and get a shell root@OPNsense:~ # freebsd-version 14.1-RELEASE-p3 You...
Re-sign rdweb rdp File
I want to tweak and then re-sign the RDP file downloaded from https://rds.example.com/rdweb the RD Gateway RD Web server to stop it being tampered with Steps With a browser on you local computer (I'm using Windows 11) connect to https://rds.example.com/rdweb...
Stopping the Remote Desktop Client from Trusting a computer after you have said trust this device
If you are connecting to a remote Remote Desktop Server and want to get the identity prompt back Goto HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers\ Find the key for the computer you have just trusted it could be an IP, hostname or fully...