How to clear your local Maven repository

I was building a multi-module project and I faced with this annoying problem with maven that keeps using old version of the maven project even though I uses mvn install -U. I usually delete my local .m2 repository folder but I found a much cleaner way to do it. mvn dependency:purge-local-repository

April 14, 2020 · John Pili
How-to-change-full-disk-encryption-LUKS-on-Ubuntu-18.04.webp

How to change Full Disk Encryption (LUKS) password on Ubuntu 18.04

Did you enabled the full disk encryption (LUKS) on Ubuntu 18.04? I would like to share how you can change the LUKS password. LUKS stands for Linux Unified Key Setup developed in 2004 by Clemens Fruhwirth. Similarly, Apple’s macOS have FileVault and BitLocker for Microsoft Windows operating system. In the terminal you can check the drives or partition with LUKS by using this command lsblk My result looks like this. Your result might differ slightly....

April 12, 2020 · John Pili
make-your-old-laptop-usable-again-with-linux.webp

Make your old laptop usable again with Linux

Revive your old laptop back in service using Lubuntu a light-weight version of Ubuntu. I bought this Lenovo IdeaPad S10-3 in 2012 when I was working in Muscat, Oman. This netbook has a blazing Intel Atom processor 1.66GHz, a 2GB DDR3 RAM, and 10″ LCD screen. I was initially thinking of giving it away because when I installed Ubuntu or CentOS it is sluggish and keeps on lagging. Then I stumble upon Lubuntu when I was researching about smallest Linux distribution....

March 29, 2020 · John Pili
Completely Delete USB Flash Drive Partition in MacOS using diskutil

Completely Delete USB Flash Drive Partition in macOS using diskutil

You may want to completely erase the partition table of your USB flash drive including the boot record. In macOS you do easily do that using diskutil. During this COVID-19 lockdown in Malaysia, I wanted to use my weekend time in installing Linux on an old laptop. It turns out that old laptop only support MBR and not GPT boot record and FAT32 instead of EX-FAT. I have to then delete the partition table from GPT to MBR and load LUBUNTU Linux distribution into the flash drive using Unetbootin....

March 22, 2020 · John Pili
load-balancing-and-redundant-internet-connection-using-tp-link-er6020.webp

Load balancing and redundant Internet connection using TP-Link ER6020

Overview I started my homelab journey in 2017, set up a small server to host my files and to test my web applications. Today, I am giving my small network a bit of an upgrade by having a redundant Internet connection using a TP-Link ER6020. I appreciate that TP-Link made their enterprise network devices affordable. If you are living in Kuala Lumpur and thinking of buying TP-Link’s enterprise network devices. Go to Sri computers in Lowyat plaza, they usually have stocks....

March 17, 2020 · John Pili
golang-sqlite-simple-example.webp

Golang SQLite Simple Example

In this post, I will show you a simple example how to use SQLite in Go (Golang). SQLite is one of the popular embedded, file-based database in the market used by companies like Apple, Airbus, Google, Skype, Autodesk and Dropbox. You can check out the list of well-know SQLite user in this link https://www.sqlite.org/famous.html Requirements Knowledge in Terminal or command prompt An installed Go 1.19 or latest Knowledge in compiling Go codes Visual Studio Code (Optional) Let’s begin We will use a library from https://github....

February 26, 2020 · John Pili
Generate text to image in Python

Generate text to image in Python

Today, I will show you how you can generate image and add text using Python. I was working on a project requires to generate an image for facebook og:image (featured image) and since this project is source code sharing tool adding a source code snippet into the featured image make sense. I used this library on skypaste.com to generate the featured image like shown below: This project requires Python Imaging Library (PIL)....

February 11, 2020 · John Pili
access-windows-shared-folder-from-ubuntu-linux.webp

Connect to Windows Shared Folder on Ubuntu 18.04 LTS

In this post I will show you how to access Windows Shared folders from Ubuntu Linux. Install Samba sudo apt install samba In Nautilus file browser, Click Other Locations from the left panel and then enter the url of the windows share or IP address. Enter user credential if required. In common windows share settings putting WORKGROUP in the domain field will be enough Once you’ve successfully connected to the Windows Shared folder....

February 2, 2020 · John Pili
how-to-create-a-bootable-ubuntu-usb-in-macos-with-unetbootin.webp

How to create a bootable Ubuntu USB in macOS with UNetbootin

In this guide I will teach you how to create a bootable Ubuntu USB on macOS with UNetbootin. Since UNetbootin is also available for Windows and Linux, this tutorial can be use on those operating system as well with minor differences. Ubuntu Linux is one of the most user-friendly Linux distribution in the market. I remember back in 2001 the Linux installation process was cumbersome and only for advance computer users....

January 29, 2020 · John Pili
Neofetch is visually pleasing command-line system information tool

Neofetch is visually pleasing command-line system information tool

I saw neofetch on reddit. I installed it on my Ubuntu box. It is a really nice looking command line system information tool. I can now show it off to Windows Admin here in the office. Neofetch – A command-line system information tool written in bash 3.2+ Neofetch Screenshot

January 16, 2020 · John Pili