BLOG

Technical tips collected over several decades in IT

Delete all files older than x days linux

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...

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...

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...

Login

Blog History