Raspberry pi expand sdcard rootfs

raspi-config –expand-rootfs If using the official Raspian images released by the Raspberry Pi Foundation, you can use the raspi-config utility to resize the main partition to fill the SD card. Instructions are on the RPi raspi-config page. Read on if you want to...

Windows 10 hosts file – entries commented out

I thought i was going crazy yesterday when some of my Windows 10 entries in C:\Windows\System32\drivers\etc\hosts file were being commented out after a while. Turns out this happens because Bitdefender Antivirus has an option to keep resetting the hosts file, to...

Resize VirtualBOX drive

Command below would resize to 30GB. Just set the correct path to where your .vdi file is. Also you have to cd to c:\program files\oracle\virtualbox first or where your Virtualbox installation is, in order to be able to use VBoxManage.exe. VBoxManage.exe modifyhd...

yml Quality of life – change nano tabs space

So i recently had to start working with yml files and that stuff needs to use “spaces” as indentation. In order to stop with Heroes of clickers, i needed to have tab just do 2 spaces on a press instead of the default 8. To get that done, you have to edit...

Install custom updated Perl

If you need a second perl installation, without messing up the system perl, there’s a fairly easy way: mkdir /usr/local/perls;cd /usr/local/perls wget https://www.cpan.org/src/5.0/perl-5.26.1.tar.gz tar -xzf perl-5.26.1.tar.gz cd perl-5.26.1 ./Configure -des...

Migrate/clone WHM settings between cPanel/WHM servers

If you want to clone or migrate between cPanel/WHM servers, the cpconftool is available and should make life a little bit easier unless you automated configuring all the options through the cPanel/WHM api. As far as usage goes, it’s fairly standard: check what...