Photo by Kirsty TG on Unsplash

It relatively simple but you have several options at your disposal to do so:

  1. Snap (installs older version but simpler): $ sudo snap install postman

2. Install it by an automated script (installs the latest version). Just head to a terminal on your machine and paste this:

This might be used for Postman updates too.

That’s all folks.


Photo by Nick Night on Unsplash

Using of Python mock.patch makes you feel uncomfortable and a bit nervous? Afraid no more. I will describe in this article simple ways of doing so by asking yourself questions. See this repo to understand better what happens:

Q: I want to mock a method of an instance. How can I do it?
A: You need make use of return_value of Mock class.

Q: I want to mock an imported function. Ideas?
A: I was caught by this several times and it may more tricky than you might expect. If you imported something like datetime.datetime in your module x.py there…


Photo by Thomas Jensen on Unsplash

Hello everyone. In this article, I will explain how to set up your private, personal VPN and DNS server in several clicks with Ubuntu 18.04 on DigitalOcean. This tutorial is a beginner-friendly. I will describe each step in details.

Things to be used:
- OpenVPN;
- PiHole + Unbound + Stubby;
- Ubuntu 18.04 VPS on DigitalOcean or any other VPS with this tutorial (Hetzner one is really cheap, €2.49 per month).

Prerequisites:
- you have spare 5$ per month to pay for a droplet;
- you have Linux-flavoured system.

When you registered with DigitalOcean you may create a project…


Photo by Eva Dang on Unsplash

Привіт усім. Сьогодні я розповім нашу історію переїзду по Tier 2 візі в Лондон.

Disclaimer: перш аніж продовжувати прочитання цієї статі, я хочу сказати, що компанія знайшла мене на Linkedin і те, що я вже по факту мав Certificate of Sponsorship (CoS) на руках, тобто, я не буду описувати процес пошуку з нуля, а стаття буде більше спрямованою на тих людей, які вже його мають, але все ж таки деякі рекомендації по пошуку з нуля я надам. Інформація актуальна на момент написання статі (10/03/2020) і може змінитися в любий момент. Тому рекомендую її звірити перед подачею документів.

У пошуку вам…


Photo by David Clode on Unsplash

Hello everyone. I’ve discovered for myself lately a need to run at the same time doctests alongside with pytest unit tests.

Let’s assume one’s have such structure of a project:

A structure of a project.

That person needs to cover by unit tests app package and at the same time check doctests of functions, classes, etc. by means of pytest’s invocation. How can it be achieved? We can put a file named, for instance, test_package_doctests.py (or any file named according to pytest.ini rules defined by an owner of a project) to the tests directory with the following content.

Content of…


Hello dear reader, there is a cool PEP 440 and today I’ll try to explain how to implement such versioning for your project according to this one.

Actually, it’s very simple process. You just need to install a single Python package.

pip install --user bumpversion

After that, you need to create a config file inside your root directory of a project.

Now I’m going to explain step by step, what’s going out inside of this file.

  • I guess current_version is a self-explanatory attribute.
  • If commit is set to True , then every single bump of a project version will…


Hello there fellow, if you’re reading now this article, then you probably ran into some problems related to debugging inside a docker container by means of pdb.

There are several nuances that uncovered on the internet, so I’d like to share with others my personal experience with those. First of all, I start with the configuration part.

You need to have something like this inside your docker-compose.yml

Nuances to know:

  • It’s important to set stdin_open and tty parameters to true on every service that will use PDB.
  • Usually inside docker-compose.yml specified bundles of services like Nginx & Gunicorn, Nginx…

Vladyslav Krylasov

Software Engineer, LL.B., MSc in CS

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