Wyoming, NSW 2250

Find Node.js instance on a server

To track down Nodejs processes running on a server first run netstat -lt to list the ports that applications are listening on. This may show port 31044 is listening, for example. Next, find the processes that are listening on those ports with netstat -anp 2> /dev/null | grep :31044 This may return a process id like 7392/server.js – then…

Read more

Fundamental coding principles

Experience in coding is not necessarily about the intricacies of a language but is as much about concepts. Below is a list of concepts that should be applied regardless of the language. DRY coding Don’t Repeat Yourself is a fundamental principal. If there is a temptation to copy and paste a block of code think about how this block…

Read more

Debian/Ubuntu/Mint – Mount a Windows network share

To mount a Windows share using the command line in a Debian based distribution, first ensure that cifs-utils is installed. If it isn’t, run sudo apt install cifs-utils To mount a share, run sudo mount -t cifs -o username=userName,domain=DOMAIN //serverName/shareName /mnt/path replacing userName, DOMAIN, serverName and shareName and the mount path as appropriate. If the Windows workstation/server is not…

Read more

Logitech G Keyboard LEDs in Ubuntu

Logitech provide the Logitech G software for managing LEDs and other settings on keyboards and mice. Unfortunately this isn’t available for Linux. There is a command line tool called g810-led that can fill this gap (https://github.com/MatMoul/g810-led). To install this on Ubuntu run: sudo apt install g810-led After installation you will probably need to reboot for the software to recognise…

Read more

Cinebench R23 results

CPU Multi CoreResult Single CoreResult Phenom II X6 1020 Athlon II X4 640 3GHz 1380 Athlon A8-3870 APU 3GHz 1560 Core i5-3470 3.4GHz 2600 Xeon E3-1240 V2 3.4GHz 3180 Core i7-4770 3.4GHz 4270 873 Core i5-1135G7 2.4GHz 5235 1315 Ryzen 5600G APU 3.9GHz 10545 1445 Core i7-12400F 6C/12T 2.5GHz (with stock cooler) 12300 1682 Core i7-12700KF 12C/20T 3.6GHz (with…

Read more

Create a PHP/Ubuntu dev environment in Windows 10

Initial WSL, Ubuntu, Apache, PHP and MySQL installation Windows Subsystem for Linux allows a development environment to be set up locally without the need for virtual machine hosts. First, install the WSL feature. Click Start, type ‘Windows features’ and click the Turn Windows Features On or Off item. Tick the Windows Subsystem for Linux option and click OK. The feature will be install, then…

Read more

Permanently Wipe A PC

Disposing of a PC, selling it on or giving it away leaves a security risk if the drive isn’t wiped of old data. Often this can be done easily with an application like MiniTool Partition Wizard for Windows, easicially if you are able to plug the drive into another PC, or are just dealing with an external drive. There…

Read more