Sharing ZFS Datasets Via NFS

You might have seen my previous tutorials on setting up an NFS server and a client. When it comes to sharing ZFS datasets over NFS, I suggest you use this tutorial as a replacement to the server-side tutorial. This is because we will be using ZFS to manage the ZFS…

Read this article

Resolve Firefox Slow Startup

With the speed improvements introduced in Firefox 54 through better multithreading support, I wanted to see if I could switch back to using it as my default browser, from Vivaldi. Indeed it does seem a lot better at handling situations where I have tens/hundreds of tabs open, and perhaps…

Read this article

Qcow2 - Recover Disk Space on Linux

Sparse qcow2 images can be convenient for allowing you to over-subscribe your disk for your KVM guests in case they might need that space later. For example, you could provision 3 guests each with 400 GB of storage, on a single 500 GB drive. To begin with, the guests will…

Read this article

PHP - Splat Operator

Since PHP 5.6, you can use splat operator (...) to create simpler variadic functions (functions that take an undefined number of arguments). To demonstrate this, the code snippet below provides a function that will return the sum of any number of numbers: function adder(...$numbers) { $sum = 0; foreach ($numbers as…

Read this article

Rsync

Rsync is a great tool for making file backups/copies or for transferring files to a remote server. This is because it will only transfer the data that has changed, and it can even compress the data before sending it, which is great if bandwidth is an issue (which it…

Read this article

Windows 10 - Enable BASH

It looks like Micro$oft has realised the power of Linux and allows you to "install" a version of Ubuntu (originally 14.04 and now 16.04 I believe) within Windows so that you can take advantage of it. This allows you to perform useful everyday tasks such as rsync…

Read this article

Windows 10 - Enable Developer Mode

Press the windows key (or click the start button), and type "Settings" before clicking on the settings application. Click on the For developers item in the left-hand menu and click on Developer mode. At the prompt, click Yes. After doing so, you will see the following: You may need to…

Read this article

FFMPEG - Losslessly convert mp4 to mkv

The formats mp4 and mkv are just the "containers" for video files that you have, which "contain" the video, audio, and metadata, such as chapter information and subtitles, for the content. The video and audio streams are encoded using codecs such as libx264 and vorbis etc. Since mkv and mp4…

Read this article

NAS Build

If you're thinking about building a NAS here is a build for you. It will focus on the following aspects. Power efficiency - its supposed to run 24/7 after all and you don't want to notice it on your power bill. Enough compute power - This machine should be…

Read this article

Faster Networking With 2.5/5 Gigabit Ethernet

Some of you may have noticed, or thought it was a mistake when there were motherboards announced at computex 2017 with 5 gigabit ethernet, such as the ASRock X370 Pro Gaming AMD AM4 Motherboard (Amazon UK). This is because you "know" networking always goes in multiples of 10, such as…

Read this article