sudo apt-get install sqlitebrowser Screenshot from Ubuntu 24.04.3 LTS running in WSL on Windows 11 Enterprise
IT Tips
WordPress Comments have wrong Comment Author IP Address when using Cloudflare Proxy
Add this to the functions.php file function wp_use_cf_client_ip($comment_author_ip) { if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { return $_SERVER['HTTP_CF_CONNECTING_IP']; } // return defalt otherwise return $comment_author_ip; } add_filter('pre_comment_user_ip',...
Remove old trackback/pingbacks in WordPress
From the mysql command line client To see all your trackback/pingbacks SELECT * FROM wp_comments WHERE (comment_type = 'pingback' OR comment_type = 'trackback'); Narrow it down to a specific post SELECT * FROM wp_comments WHERE (comment_type = 'pingback' OR...
Getting the SHA512SUM using Powershell
Get-FileHash -Path ".\debian-13.2.0-amd64-netinst.iso" -Algorithm SHA512 | fl # output Algorithm : SHA512 Hash : 891D7936A2E21DF1D752E5D4C877BB7CA2759C902B0BFBF5527098464623BEDAA17260E8BD4ACF1331580AE56A6A87A08CC2F497102 DAA991D5E4E4018FEE82B Path :...
VMWare Workstation Pro 25H2 on Windows 11 Enterprise 25H2
Tried VMware Workstation Pro a while a go on Windows 11 but I am bound to having Hyper-V running for my Docker Desktop / WSL development environment and it just didn't work. Trying VMWare Workstation Pro 25H2 and it... works Apparently it uses the Hyper-V internals to...
Perform an if-then-else in a Dockerfile
RUN if [ $(arch) = "aarch64" ] ; then apt-get -y install chromium ; else echo Chromium NOT needed ; fi
Entering a Docker Container via Docker Compose CLI
TIL that you can enter a container straight from docker compose Run bash as the containers default user docker compose -f docker-compose.yaml exec php bash Run bash as the root user docker compose -f docker-compose.yaml exec -u 0 php bash Where docker-compose.yaml is...
Change the power settings to stop a computer sleeping using the CLI
powercfg /x monitor-timeout-ac 30 powercfg /x disk-timeout-ac 15 powercfg /x standby-timeout-ac 0 powercfg /x hibernate-timeout-ac...
Adding the Windows Store GIMP 3 executable path to IrfanView
The location of the Windows Store version of GIMP 3 is under C:\Program Files\WindowsApps I tried to navigate into C:\Program Files\WindowsApps to find gimp-3.exe but I get an access denied. Therefore, to add the Windows Store version of GIMP 3 as an external editor...
Show the Temperature of a Cisco WS-C2960L-16PS-LL Switch
show env all SWITCH: 1 SYSTEM TEMPERATURE is OK System Temperature Value: 56 Degree Celsius System Temperature State: GREEN Yellow Threshold : 88 Degree Celsius Red Threshold : 93 Degree Celsius SWITCH: 1 PID: Built-in System Power:(Watts) 173 Max Power Usage:(Watts)...
