Add memtest86+ into your grub menu

16 March 2018 | 1 min read

I just bought a 8GB DDR3L So-DIMM from Shopee. The seller said it new and not refurbished. I need to check the memory if got some corruption or unusable memory bits.

By default, after installed Fedora into you machine, it don’t have memtest86+ on grub menu when booted. You need add it manually.

$ sudo memtest-setup
$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Slow speed on git clone

16 March 2018 | 1 min read

Previously, on my last project, I have huge of git repository, I find that the fetch speed can be extremely slow (KB/s).The workaround is to fetch only the latest revision first and then fetch the rest:

$ git clone --depth=1 git@github.com:RobbiNespu/pitabytes.git
$ cd pitabytes
$ git fetch --unshallow

You also can try to use higher compression

$ git config --global core.compression 9

If you still have the problem, you need to retired early and go back to you hometown.


Fedora - Setting power management when low battery

16 March 2018 | 2 min read

Peace be upon you, I have issue with Fedora power management when my DELL Inspiron 14R 7420 SE battery are low, my laptop just shutdown and I lose what I currently working on. It bad when there is no autosave while editting some document or waiting f***ing Android Studio doing indexing or compiling.

Some how our spining disk also can get corrupt if it often happen like this. To be honest, I normally sleep at late night and mostly with my lappy on my desk (bad habit pun intended huh >_<)

(read more)


Create GIF from images using ImageMagic

16 March 2018 | 1 min read

You can be magician if you know how use and implement ImageMagick package. I use this package to create an animated GIF file from a series of image files.

$ convert -delay 300 -loop 0 1.png 2.png 3.png out.gif

With these magic command, it will create an animated GIF from given 3 images with a delay of 3 seconds between each frame and loop infinitely:


Create a phpinfo() page via terminal

14 March 2018 | 1 min read

Normally, during development we need to install few PHP extension and need to check if it already installed before or not. The easier way is to check via phpinfo() output. Please read manual - phpinfo if you want to know more.

But normally during production we do not display to public as prevention from script kiddies

$ echo "<?php phpinfo(); ?>" | sudo tee /var/www/html/phpinfo.php

So you need to delete after get the information. Otherwise, just you also can check PHP modules via php -m or php -i from terminal.