---
title: "Harsh Maur (@harshmaur) | Hashnode"
description: "Software Engineer. Read the latest articles by Harsh Maur on Hashnode."
url: "https://hashnode.com/@harshmaur"
---

@harshmaur

# Harsh Maur

@harshmaur · Joined December 2022

Software Engineer

[Website](https://harshmaur.com/)

### [How to get, upload and delete an object from s3 using aws-sdk for nodejs](https://harshmaur.com/how-to-get-upload-and-delete-an-object-from-s3-using-aws-sdk-for-nodejs?utm_source=hashnode&utm_medium=feed)

Here's the TLDR. Create a file to where all the methods will be present. // s3.js import \* as AWS from '@aws-sdk/client-s3'; const bucket = process.env.AWS\_BUCKET\_NAME; const region = process.env.AWS\_REGION; const endpoint = process.env.AWS\_ENDPOIN...

2 min read · [harshmaur.com](https://harshmaur.com/how-to-get-upload-and-delete-an-object-from-s3-using-aws-sdk-for-nodejs?utm_source=hashnode&utm_medium=feed)

[Dec 17, 2022](https://hashnode.com/posts/how-to-get-upload-and-delete-an-object-from-s3-using-aws-sdk-for-nodejs/639d7afa0fed24c7474ae464)

### [How to use MongoDB profiler](https://harshmaur.com/how-to-use-mongodb-profiler?utm_source=hashnode&utm_medium=feed)

Back in my previous company, we ran into issues where our MongoDB server became very slow and affected all our queries. Fortunately, we used Atlas and Profiler was available to us to analyse what was going on. Here are some things we looked at. High...

1 min read · [harshmaur.com](https://harshmaur.com/how-to-use-mongodb-profiler?utm_source=hashnode&utm_medium=feed)

[Dec 17, 2022](https://hashnode.com/posts/how-to-use-mongodb-profiler/639d70c8e766bc764ebe7452)

### [How to use PyDrive2 to upload a file to google drive folder](https://harshmaur.com/how-to-use-pydrive2-to-upload-a-file-to-google-drive-folder?utm_source=hashnode&utm_medium=feed)

Uploading file to google drive requires the following steps: Authenticate with google drive Uploading a file to a specific folder by the name of the folder If the folder does not exist, we need to create the folder first Finally, upload the file....

3 min read · [harshmaur.com](https://harshmaur.com/how-to-use-pydrive2-to-upload-a-file-to-google-drive-folder?utm_source=hashnode&utm_medium=feed)

[Nov 26, 2022](https://hashnode.com/posts/how-to-use-pydrive2-to-upload-a-file-to-google-drive-folder/63957a1b11a2b654cc0eacaa)

### [How to write good comments in the code?](https://harshmaur.com/how-to-write-good-comments-in-the-code?utm_source=hashnode&utm_medium=feed)

While naming variables, functions and classes is one of the hardest things to do as a programmer, writing comments is also hard. It’s easier to express our logic in code vs English. Let’s look at the best ways to write comments in code. YAGNI — You a...

5 min read · [harshmaur.com](https://harshmaur.com/how-to-write-good-comments-in-the-code?utm_source=hashnode&utm_medium=feed)

[Nov 19, 2022](https://hashnode.com/posts/how-to-write-good-comments-in-the-code/639579a9e149b4559efe55ca)

### [How to use PyDrive2 to access google sheets inside a data frame in python](https://harshmaur.com/how-to-use-pydrive2-to-access-google-sheets-inside-a-data-frame-in-python?utm_source=hashnode&utm_medium=feed)

With an increasing number of users using google sheets to maintain data, it has become essential to access google sheets in your development environment. You have a few options: Use API from services like sheetsu, sheety, etc Use Official Google sh...

2 min read · [harshmaur.com](https://harshmaur.com/how-to-use-pydrive2-to-access-google-sheets-inside-a-data-frame-in-python?utm_source=hashnode&utm_medium=feed)

[Nov 5, 2022](https://hashnode.com/posts/how-to-use-pydrive2-to-access-google-sheets-inside-a-data-frame-in-python/6395790babf8eea14be7f564)
