What is a slug and how to create one?A slug is a piece of text that is attached to the end of a URL (after the backslash "/") that is unique and locates the specific page of a website. The use of a slug can provide dual benefits for a website. Firstly, it can improve the website's SEO p...May 18, 2023路3 min read路52
How to Google Search from the terminal?As developers, we spend the majority of our time working with the terminal. The terminal is excellent at saving time and increasing productivity, such as when creating a file or performing complex tasks. Have you wondered about searching Google direc...Oct 26, 2022路1 min read路287
How to optimize images for website?Images are the core and heaviest component of the website. In your carrier, in web development, you might have encountered the following report in the Lighthouse test: As a result, in this article, I will show you an easy and simple way to optimize ...Sep 23, 2022路2 min read路22
Auto Pull Request Merge in GitHub ActionsI write my blog almost daily, and I have to add new articles to it via Pull request. I wanted to schedule the pull request so that the article reaches readers at a proper time. Unfortunately, GitHub doesn't have a native solution to schedule the merg...Sep 21, 2022路2 min read路24
Full Height Div in CSSIn this article, I'll show you how to make the div the same height as the browser window in an easy and perfect way. You might have thought that making a div element the same height as the browser would be just like this: .div{ height: 100%; } Unf...Sep 19, 2022路1 min read路19
Introduction to cURLIntroduction cURL is practically ubiquitous, whether it's testing the output of an API before deploying it to production or simply fetching a response from a website (for example, to ensure it's not down). As a front-end developer, I had to use it fr...Sep 18, 2022路2 min read路9
Get response header using cURL requestcURL does not display request or response headers by default, instead displaying only the HTML contents. To display only the response header, we can use header-only mode in the cURL request. Here's how you do it: curl www.dhairyashah.dev -I or you ca...Sep 17, 2022路1 min read路23