Skip to content

Instantly share code, notes, and snippets.

Goal: Understanding how to use curl both from the command line (CLI) and from C code using libcurl.

Part 1 — Introduction

curl (Client URL) is a tool and library used to transfer data using network protocols such as HTTP, HTTPS, FTP, SFTP, SMTP, etc.

It has two main forms:

  • CLI Tool: used directly in the terminal

Fixing Ping Issues Between Windows and Linux in VMware (Bridged Network Mode)

When using VMware with a Linux virtual machine and a Windows host on the same laptop, you may notice that ping between the two systems doesn’t work — even though both have similar IP addresses. This usually happens because VMware is using the wrong adapter for its “bridged” connection (for example, a virtual or Bluetooth adapter instead of the actual Wi-Fi or Ethernet interface).

The following steps explain how to fix it:

Step 1 — Open the Virtual Network Editor

  1. On the VMware toolbar, go to

Step 1: Find the Windows IP (Receiver)

1.Open Start → type cmd → press Enter.

2.Type:

ipconfig

3.Look for the section:

@alimzh5
alimzh5 / text.md
Last active October 8, 2025 10:31
Adding a New Hard Disk in Ubuntu (VMware)

Adding a New Hard Disk in Ubuntu (VMware)

  1. Add Disk in VMware: Power off the VM. Go to VM Settings > Add > Hard Disk > SCSI > Create a new virtual disk. Choose size (e.g., 10 GB), then click Finish.

  2. Partition and Format in Ubuntu

lsblk                     # Check if /dev/sdb appears
sudo fdisk /dev/sdb # Create a new partition (use 'n' and 'w')