Sign in

Cloud Platform Engineer | IITR Alumnus

Consider you are working on a python application that needs to communicate with a Postgres database and you want to run SQL queries from the python application itself.

If you are working with a web application, using an object-relational mapper (ORM) would be the right and efficient way to go…

Sometimes, when your project is too large to handle everything in one AWS account or when you maintain multiple environments in different AWS accounts and you need the data to flow between accounts, it becomes a headache to do all that with reconfiguring the IAM roles and S3 bucket policies…

When it comes to backend development in Python, Django is one of the best frameworks you can find. It enables you to do fast development because of the number of features it has and its built-in ORM. Moreover, you can add new functionalities with the help of a wide variety…

Suppose you are working with a significantly long runtime and contains multiple for loops. I am sure you must have added all the necessary logging to know the status of your running code.

While this is an absolutely good way to work on this type of use-cases, you can add…

Implementing linked lists and binary trees using pointers in languages such as C++ might sound familiar to you, but what if you don’t want to use those languages? If you haven’t seen or done it before, data structures such as linked lists can easily be implemented using python classes. …

  1. Creating Lists in one line:
lst = [x for x in range(0,10)]
>>> print(lst)
>>> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

2. Converting 2 lists to a dictionary:

list_1 = [“a”, “b”, “c”, “d”]
list_2 = [1, 2, 3, 4]
dict_from_lists = dict(zip(list_1, list_2))>>> print(dict_from_lists)

For all those who want to work with remote Linux servers from their Windows computer, there are several ways to connect. For example, you might be using PuTTy or MobaXterm already. These tools are great and have some additional features as well.

What if you just want to use PowerShell for your ssh command. Yes, windows now have support for ssh in PowerShell. That’s not enough though, just like you use chmod 400 <your .pem file> for the permissions on Linux, you need to do a similar thing on Windows as well. So, I have noted down a list of PowerShell commands to do this.

Just update the path to your .pem key file and run these commands, you’ll be good to go. To ssh into your remote server, just run:

ssh -i "Path\to\your\ssh_key.pem" user@hostname

Hope, this helps.

Disclaimer: This article assumes that the reader is already familiar with django framework and can perform the basic functions of django and has some hands-on experience with AWS as well.

Django is a great framework to build web backends fast and we generally start the development by simply storing everything…

The month of June was coming to an end and the hot winds gradually started to turn into the cold breeze. But still, there were no signs of rain in Gaurav’s village, Kalapi. He was expecting it to come soon and so were the others in the village. People started…

The trickling sound of whiskey poured into the glass was enough for them to forget their boring week. Ishan started the countdown from three and the others followed it to one and they started emptying their glasses simultaneously. They no longer bought those cheap spirits they used to buy in…

Devashish Patil

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store