Enable console(UART) on raspberry pi 4b running ubuntu22.04

I recently had some issue on how to enable UART(console) port on a raspberry pi device. This post will help you configure raspberry pi to be accessible by UART(console) on the board. 01. Edit the config.txt under /boot/firmware. Add “enable_uart=1” in the file or edit if the line already exist. 02. Edit cmdline.txt under /boot/firmware.… Continue reading Enable console(UART) on raspberry pi 4b running ubuntu22.04

Let your python script take command line argument with Argparse

Sometime in your life you might want your script to be able to accept command line argument as input. This post will teach you the most basic usage of Argparse library. I only touch surface of this library if you would like to know more detail usage read docs.python.org for further instructions. Installation is quite… Continue reading Let your python script take command line argument with Argparse

Factory Reset Palo Alto Firewall with admin password

This post will show you how to perform factory reset on a Palo Alto firewall. And this post assume you have admin user password of the firewall. Step01Enter maintenance mode using the command below. Step02Select “Factory Reset” option. Step03Confirm to perform a factory reset by selecting the “Factory Reset” option. Step04Wait the system being reset.… Continue reading Factory Reset Palo Alto Firewall with admin password