IT Tips

Unable to query OPcache status when running wp-cli

You are running wp-cli and see this error message: Unable to query OPcache status: array_key_exists(): Argument #2 ($array) must be of type array, bool given. This error is thrown when opcache_get_status( true ) is called and returns false because opcache is disabled...

Manual Labtech removal

https://advyon.com/how-to-manually-remove-the-lts-service-for-labtech/ Just in case the link above ^ goes away Manually make changes on the machine Changes have to be made at four different locations on the local machine in the following order. 1. Services.msc...

Replacing SFP’s in Cisco 2960x Switches

I have 3 Cisco ws-c2960x-24pd-l switches on a site with SFP+ slots (10GB) The switches were relocated when the business moved to another factory. The old factory must of had single-mode fibre links because the switches had SFP-10G-LR-S SFP+'s which are single-mode...

Cisco Router Wake On Lan

Haven't confirmed this to work yet but leaving here so I have a reference for later In the Cisco enable prompt Router# tclsh proc WakeOnLan {broadcastAddr macAddr} { set net [binary format H* [join [split $macAddr -:] ""]] set pkt [binary format c* {0xff 0xff 0xff...

PGAdmin4 on M1 Mac fails to connect

Trying to connect PGAdmin 4 (pgadmin4-7.2-x86_64.dmg) on an M1 Macbook to a remote Postgres server using SSH tunnelling and SSH username/password auth and you get: Unable to connect to server: Failed to decrypt the SSH tunnel password. Error: 'ServerManager' object...

Turn XDebug Off in a Powershell Terminal

To turn off Xdebug in a Powershell terminal $env:XDEBUG_MODE = "off" To turn on Xdebug in a Powershell terminal $env:XDEBUG_MODE = "off" Windows 11 VSCode Terminal: XDebug output and then without when XDEBUG_MODE = "off"

Aruba APIN0305 Default Password

After a factory reset In the username section, enter 'admin.' In the password section, enter the serial number of your AP in uppercase. From here: https://info.pivitglobal.com/resources/aruba-ap-305-login-issues

NGINX + PHP-CGI + MYSQL On Windows 11

This is my setup to serve CakePHP from a virtual subdirectory on Windows 11 where http://localhost/subdir/ points to C:/dev/cake_test/webroot/ Run Terminal as Administrator then: Install chocolatey https://chocolatey.org/install Install MySQL, PHP and Nginx using...

CakePHP 4 + VSCode + DebugKit SETUP

There are three configurations this post covers Local Development Use the default if working locally If you are using CakePHP 4 and developing on the local file system (straight from Windows) use this: Debugger::setEditor('vscode'); If your project is in...