Posts in 2023

  • How To Debug Emacs Cpp Indentation

    Saturday, August 26, 2023 in Blog

    Do Syntactic Analysis Do c-show-syntactic-information or C-c C-s to get an syntactic analysis first, you should get something like this Syntactic analysis: ((statement-block-intro 930)) At the same time, emacs will also highlight the anchor point. …

    Read more

  • How To Resize Disk On Linux

    Thursday, July 13, 2023 in Blog

    Assuming you have a Linux VM, and you enlarged the disk. Take the following steps on your Linux to apply the changes. Step 1: Resize the volume The easiest way to resize your volume is to use cfdisk. sudo cfdisk This is what it looks like on my VM. …

    Read more

  • Set Up VPN Server And VPN Router

    Sunday, July 02, 2023 in Blog

    Set Up VPN Server Deploy an ubuntu 22.04 server on your target network. Run the following commands to install vpn server on it. wget https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh -O …

    Read more

  • How To Use mDNS Within Docker Container

    Saturday, June 17, 2023 in Blog

    mDNS is a service that allows you to access hosts within your LAN by using their hostnames. However, it is not working by default in a docker container. In order to use mDNS in a docker container, you’ll have to: Install avahi-utils within your …

    Read more

  • Automate Proxmox VM Creation With Cloud-Init

    Monday, February 06, 2023 in Blog

    This post gives you step-by-step instructions of how to automate proxmox VM creation. I’ll use ubuntu as an example. Overview The overall strategy is to use the ubuntu cloud image to create a Proxmox VM template, and attach a cloud-init disk to …

    Read more

  • Automate Ubuntu Installation

    Wednesday, February 01, 2023 in Blog

    As a software engineer, I frequently needed to create new Linux VMs for testing and other purposes. The traditional way of installing Linux on a VM is very inefficient, which consumes a lot of my time. Automating the process is very appealing to me. …

    Read more

  • Debug Gitlab Pages Build Locally

    Tuesday, January 24, 2023 in Blog

    Gitlab pages is an awesome tool, which allows you to publish any static website to the internet. One of the biggest frustration I had is that I don’t know whether a commit is breaking the build before submitting the changes for CI. I was …

    Read more

  • Quick Website Access With Bunnylol

    Monday, January 23, 2023 in Blog

    What is Bunnylol? Bunnylol is a tool that allows you to quickly access target websites from your browser address bar. For example, by typing in gm in your browser search bar, bunnylol will forward you to gmail automatically. With bunnylol, many …

    Read more

  • Using LVM For Proxmox

    Thursday, January 19, 2023 in Blog

    If you are trying to use Proxmox to set up a homelab for the first time, it must be very confusing to see all the storage related terms, e.g., LVM, LVM-Thin. This post talks about everything you need to know to understand how Proxmox uses LVM as its …

    Read more

  • Create Multi-Boot Usb Flash Drive With Ventoy

    Wednesday, January 18, 2023 in Blog

    A multi-boot usb drive allows you to install multiple operating systems from the it. It is pretty handy. With a multi-boot usb drive, you don’t need to create a installation usb drive for each OS. This post gives you step by step instructions …

    Read more