GitHub CLI and Personal Access Tokens: What I Use Daily

Why I Bother With This I got tired of opening the browser every time I wanted to create a repo, check a PR, or trigger a workflow. GitHub CLI (gh) lets me do most of that from the terminal. Personal Access Tokens (PATs) are how Git authenticates when you push over HTTPS. This post covers both — how I generate a PAT and how I use gh day to day. ...

September 4, 2021 · 2 min · Saad

GitHub from the Command Line: How I Push My Code

Why I Use GitHub I use Git to track changes in my code and GitHub to host it online. Git runs on my machine. GitHub is the website that stores my repos and lets me share them. If you’re new: Git is the tool, GitHub is where the repos live. Install Git Ubuntu: sudo apt update sudo apt install git Arch Linux: sudo pacman -S git Check it worked: git --version Set Your Name and Email Git attaches this info to every commit: ...

September 3, 2021 · 1 min · Saad

Creating a VM on Microsoft Azure

What I Did I needed a cloud server to test things without using my local machine. I spun up an Ubuntu 20.04 VM on Azure and connected via SSH. Here’s the exact process I followed. Create the VM Log in to Azure Click Create a Resource Pick Ubuntu 20.04 LTS → Create Name the VM Under Administration Account, choose SSH Public Key Set a username and key pair name Under Inbound Port Rules, open SSH (22) and HTTP (80) Click Review and Create → Create Download the key pair file when prompted Wait for deployment, then click Go to Resource Connect via SSH cd ~/Downloads chmod 400 pair_key_name.pem ssh -i pair_key_name.pem username@your_ip Type yes when SSH asks about the fingerprint. ...

August 16, 2021 · 1 min · Saad

SSH: How I Connect to Remote Servers

Why I Use SSH SSH is how I control another machine from my terminal. I use it to manage servers, copy files, and run commands on remote systems without sitting in front of them. For Windows remote desktop you use RDP. For Linux, SSH is the standard. How SSH Works (Short Version) Client — on your laptop (where you type) Server — on the remote machine (what you connect to) You run ssh user@ip, enter your password (or use a key), and you get a shell on the remote box. ...

August 14, 2021 · 2 min · Saad

Dual Boot Ubuntu and Windows: What I Did

Why I Dual-Booted I needed Windows for some things and Linux for everything else. Instead of picking one, I installed Ubuntu alongside Windows on the same machine. This is the process I followed. Steps to Dual Boot Ubuntu with Windows Step 1: Prepare a Bootable USB Drive Download the latest Ubuntu ISO from the official Ubuntu website. Download and install Rufus or balenaEtcher to create a bootable USB. Insert a USB drive (at least 8GB) into your computer. Open Rufus or balenaEtcher: Select the Ubuntu ISO file. Choose the USB drive. Click “Start” to create the bootable drive. Step 2: Configure BIOS/UEFI Settings Restart your computer and enter BIOS/UEFI by pressing a specific key (usually F2, F12, Del, or Esc) during startup. Look for Boot Order/Boot Priority and set the USB drive as the first boot device. Disable Secure Boot (if enabled) under the Security tab. Enable UEFI mode (recommended) instead of Legacy mode. Save changes and exit BIOS. Step 3: Boot from the USB Drive Insert the bootable USB drive into your computer. Restart the system and press the Boot Menu key (F12, F9, Esc, or as per your motherboard). Select the bootable USB drive from the list. Press Enter to boot into Ubuntu Live. Step 4: Try or Install Ubuntu Once the Ubuntu installer loads, you will see two options: Try Ubuntu – Runs Ubuntu without installing it. Install Ubuntu – Proceeds with the installation. Click on Install Ubuntu to continue. Step 5: Select Keyboard Layout Choose your preferred keyboard layout and language. Click Continue. Step 6: Connect to Wi-Fi (Optional) Select your Wi-Fi network. Enter the password and click Continue. Step 7: Choose Installation Type Select Normal Installation (recommended). Check the box Install third-party software for graphics and Wi-Fi hardware, Flash, MP3, and other media. Click Continue. Step 8: Choose Installation Method Select Something else (for manual partitioning). Click Continue. Step 9: Create Partitions for Ubuntu Ubuntu requires three main partitions: ...

August 13, 2021 · 3 min · Saad

Hugo: The Static Site Generator I Use for This Blog

Why I Picked Hugo I wanted a blog that loads fast, doesn’t need a database, and lets me write posts in Markdown. Hugo does exactly that — it builds plain HTML files from my content, and I host them on GitHub Pages. No WordPress, no PHP, no MySQL. Just markdown files and a hugo command. What I Like About It Fast builds — my whole site compiles in under a second Markdown posts — write in any editor, commit to Git Themes — I’m using PaperMod GitHub Pages — free hosting, deploys on push How I Set Up Hugo 1. Install Hugo On Arch Linux sudo pacman -S hugo On Ubuntu sudo apt update sudo apt install hugo Or install the extended edition from the official release page (recommended for themes that use Sass): ...

December 3, 2020 · 4 min · Saad

My First Post

Hello — this is my first blog post on Hugo. I set this site up to document what I’m learning as I go. More posts coming soon.

September 15, 2020 · 1 min · Saad