Запуск CSR1000v в VirtualBox (Windows) с эмуляцией serial port

Я расскажу как подготовить и запустить виртуальный маршрутизатор Cisco - Cloud Services Router (СSR1000v) в VirtualBox под Windows с эмуляцией serial port, настроить доступ по telnet, ssh и написать скрипт на python для автоматизации конфигурирования. Необходимый софт С официального сайта нужно скачать файлы csr1000v-universalk9.03.15.00.S.155-2.S-std.iso и csr1000v-universalk9.03.15.00.S.155-2.S-std.ova. По-моему, сейчас это самая поздняя версия CSR, доступная с аккаунтом Cisco, версии новее требуют различные партнерские отношения с Cisco. Зарегистрироваться можно по адресу. Если еще не установлен VirtualBox, скачайте и установите. ...

<span title='2021-07-19 00:00:00 +0000 UTC'>July 19, 2021</span>

The best APIs for solving geospatial tasks

In mapquest.com I have found out the best APIs for working with maps and geopositions in my opinion. For example, I wrote a small script to navigate between cities. That is the result for the route from Bryansk to Moscow. The API has many request parameters. JSON response contains a lot of data: Links: [1] developer.mapquest.com [2] Example of using the API

<span title='2021-07-18 00:00:00 +0000 UTC'>July 18, 2021</span>

Setup Cisco CSR1000V in Yandex.Cloud

In Yandex.Cloud, you can deploy a Cisco Cloud Services Router (CSR) 1000v virtual router from a ready-made virtual machine image. There is an awesome manual at this link to Yandex docs. For my experiments, I ran two instances of CSR1000v. I have configured a connection to one of them using SSH. Both of them are interconnected by a local network. This is one of the possible ways to study the training courses of the Cisco Network Academy. ...

<span title='2021-07-17 00:00:00 +0000 UTC'>July 17, 2021</span>

Setup a basic workflow using GitHub Actions with Docker

In the continuation of the post “Creating dockerized Django app with VSCode”, I updated the source code to work with GitHub Actions. Setup a basic workflow using GitHub Actions Add to the requirements.txt file the following line to check with linter: flake8>=3.9.2,<3.10 Create a new file at .github/workflows/cd.yml and fill it with the following contents: --- name: Code checks on: push: branches: [ master ] pull_request: branches: [ master ] jobs: test: name: Test runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Test run: docker-compose run --rm . sh -c "python manage.py test" lint: name: Lint runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - name: Lint run: docker-compose run --rm . sh -c "flake8" To add a cool badge I updated README.md with the following link: ...

<span title='2021-06-13 00:00:00 +0000 UTC'>June 13, 2021</span>

Creating dockerized Django app with VSCode

Thanks to Mark Winterbottom for the interesting videos and the idea for this post. Creating a Django project Start by creating a new directory for your project (eg: vscode-django-docker), and open it in VSCode. mkdir vscode-django-docker cd vscode-django-docker git init code . Then, add a .gitignore for your project. You can use template for Python provided by GitHub or generate on gitignore.io. Now let’s create a Django project by running the one-line-command below ...

<span title='2021-06-12 00:00:00 +0000 UTC'>June 12, 2021</span>

First acquaintance with React Native

Of course, I’m just one of thousands who started building apps using React Native. But whatever, it’s a cool experience.

<span title='2021-04-25 00:00:00 +0000 UTC'>April 25, 2021</span>

Creating an html template with PyCharm

A cool feature of PyCharm is the fast creating an html template. Create a new file, type html:5, press Tab. That’s all.

<span title='2021-04-09 00:00:00 +0000 UTC'>April 9, 2021</span>

Django project deployed on Heroku

About a year ago, I published a web-based task management application written with Flask. It looked like this: Since a year has passed, I decided to rewrite this project in Django, and also try to deploy it to PaaS Heroku. I’ve also made some improvements, including design, authorization, database management, and web security issues. That’s what happened: Links: Try it in live on Heroku GitHub repository

<span title='2021-03-25 00:00:00 +0000 UTC'>March 25, 2021</span>

Using VSCode with pipenv

I found out how to use pipenv environment with VS Code from the article “Visual Studio Code, Python and pipenv”. Thanks, Benjamin Pack! I saved the text for myself. First, find out where pipenv has created your virtualenv setup and stashed the python executable you are using. From the command line in your project folder (where your Pipfile is), execute the following: pipenv --py This will give you the full path to your virtualenv python install. For my sample project it was /Users/pack/.local/share/virtualenvs/astra-AQkAm5fD/bin/python ...

<span title='2021-03-15 00:00:00 +0000 UTC'>March 15, 2021</span>

Manage Docker without sudo and clean up used disk space

Manage Docker without sudo There are official guidelines for managing Docker as a non-root user. Summary: add user to docker group $ sudo gpasswd -a $USER docker If testing on a virtual machine, it may be necessary to restart the virtual machine for changes to take effect. On a desktop Linux environment, log out of your session completely and then log back in. On other cases for Linux, you can also run the following command to activate the changes to groups: ...

<span title='2021-03-13 00:00:00 +0000 UTC'>March 13, 2021</span>