This command deletes all files modified more than 30 days ago in the current directory # have a look at what it will delete find ./ -type f -mtime +30 | more # then get an idea of how many files it will delete find ./ -type f -mtime +30 | wc # after you are happy run...
James McDonald
Macbook Pro Mouse Pointer Moves but click stops working
I keep having an issue that my mouse track pad stops working. I can move the mouse pointer but I can't click. Possible solution: Open your laptop bag, find your Apple mouse and turn it off.
Generate custom fixture names in Cakephp 5
bin/cake bake fixture --conditions "id IN (10,81)" -r -n 10000 --table trading_partners CustomTradingPartners Use the above to export selected records to a fixture Important: The fixture name (The CustomTradingPartners parameter in the above example) is limited to 28...
CakePHP 5 persoderlind.vscode-phpcbf
Still haven't gotten this working well... sigh. The persoderlind.vscode-phpcbf extension didn't work for me when running my PHP devel container (php:8.2-fpm) on Windows 11 in Docker Desktop using the WSL2 Engine until I let it know about the CakePHP coding standard #...
Network speed test host to host
On Ubuntu / Debian apt-get install iperf3 On Windows download it from https://iperf.fr/iperf-download.php#windows Make sure you create firewall rules to allow them to talk to each other e.g. allow inbound 5201 for the server I'm paranoid so I go to virustotal.com and...
MODIFYING USER ATTRIBUTES WHEN Azure AD Connect Is Synching Attributes
Trying to configure a heap of legacy user shared mailboxes to Be hidden from the Global Address List Not allow external senders to send to Remove the internet email addresses and go back to [email protected] so that it is obvious these have been...
Clear HSTS Settings in CHrome
Open chrome://net-internals/#hsts enter the domain in the query field and click Query to confirm it has HSTS settings enter the domain ini the delete field and click Delete
Ubuntu on Hyper-v
It boils town to installing linux-azure # as root or sudo apt-get update apt-get install linux-azure https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/supported-ubuntu-virtual-machines-on-hyper-v A more manual approach is:...
Google Chrome Kiosk vs Full Screen
# F11 can minimize "C:\Program Files\Google\Chrome\Application\chrome.exe" --start-fullscreen "https://toggen.com.au" # Cannot use F11 to minimize but use CTRL + ESC or CTRL + ALT + DEL to get the menu / task manager available "C:\Program...
See which Port a computer is on Unifi USW Pro 48 PoE SWITCH
The Unifi Network application reports devices as being on the wrong port. I have one environment where the browser console reports devices as being in Port 1 of the USG when they are actually plugged into switches in other buildings. So as a work-a-round to find the...
Open Source Password Authenticator and Password Safe
https://winauth.github.io/winauth/download.html Just in case anyone needs an alternative to Authy since they deprecated the Windows client https://keepass.info And a password database.
Microsoft VPN Add routes after bringing connection up
I have an old school L2TP VPN which by default becomes the default gateway when I connect. To stop the VPN Connection being the default gateway on Windows uncheck the "Use default gateway on remote network" The side effect of this is you gain access to local subnets...
Synology prompts for Basic Authentication password after removal of DOMAIN/LDAP
Problem: After removing Domain/LDAP auth (Leaving a domain) on a Synology NAS it still shows the Basic Authentication prompt on the browser Examples of Basic Auth Prompts for Google Chrome, Firefox and Microsoft Edge Google Chrome Firefox MS Edge Cause: Integrated...
Squarespace Image Export
To gain continued access to your Squarespace website images after cancelling your subscription you have several options Wordpress.com Squarespace gives you the ability to export the site in Wordpress format XML. The resulting XML file doesn't contain any of the images...
MySQL 8.x GRANT ALL STATEMENT
-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON tgndbrestored.* TO 'tgnrestoreuser'@'localhost'; -- RESTORE as below -- DELETE user and database DROP USER tgnrestoreuser@localhost; DROP DATABASE...
Exetel Opt-Out of CGNAT
If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their using CG-NAT their website says you will need to contact them to opt-out of CG-NAT: I phoned support and the quoted wait time was going to be 50...
Guy gone Dual Stack
FYI to myself. Today I've gone IPv4 / 6 dual stack on my Azure VM... nginx listen *:443 ssl http2;listen [::]:443 ssl http2; listen *:80;listen [::]:80;
Goodbye TPG due to no IPv6
Just had a client call from holidays in India who couldn't connect to an IPv4 RDS environment. The problem was the ISP connection there looked to be IPv6 and for some reason it couldn't connect to our RDS gateway. Having them go to https://whatismyipaddress.com showed...