Production deployment Django WSGI application on nginx and gunicorn

Following my previous post on nginx installation process, I will now describe the process of deploying a Django WSGI application on nginx. Tero Karvinen has a great guide on his website on deploying Django using Apache 2 webserver and mod_wsgi, which I have adapted to use for nginx. Install virtual environment The first step is to create a new virtual environment inside your directory. In this example, I will store my Django projects in the /home/evgeni/publicwsgi directory, and activate the virtual environment using the following commands:...

June 6, 2023 · 5 min

Setting up nginx web server on a fresh Debian 11 VM

For nearly my entire career, I’ve been using the Apache2 web server as my main solution for web hosting. For many years, Apache2 was the number 1 web server and the obvious choice. However, the competitor nginx has been on the rise and a few years ago, took the #1 spot away from Apache. I am now working on a new web project and decided to give nginx a try. I run my setup on a newly installed Debian 11 virtual machine that I acquired from Digital Ocean....

June 1, 2023 · 3 min

Totolink X5000R - perfect for OpenWrt

Have you tried OpenWRT? If you haven’t, you definitely should. OpenWRT is an open-source router software that allows you to turn a basic router into a powerful device. You can do a lot of things with OpenWRT. In addition to just using it as a simple WiFi router, you could route your traffic via VPN, set up VLANs, and so much more. The possibilities are almost limitless. However, there are a few drawbacks to OpenWRT....

April 19, 2023 · 3 min

Telegram Bot for ChatGPT and other OpenAI models

I’m sure that by now many of you have played around with the ChatGPT model by OpenAI. If not, you should definitely try it out! You can interact with the model via your web browser, but it’s more enjoyable to experiment and create something yourself. Hence, I decided to code a Telegram bot that connects to the OpenAI API. The main features of the bot include: Using the ChatGPT model with the /chat command....

April 12, 2023 · 2 min

Ideas for Home Automation

I’ve been exploring the world of home automation for some time now. Like many hobbyists, I’ve found that having multiple platforms for lighting, sensors, etc. can be frustrating. There are a few open-source options available, the most popular being Home Assistant and openHAB. I’ve tried both, but personally I prefer Home Assistant due to its ease of use and strong community support. In this post, I won’t delve into the process of installing and configuring Home Assistant, as you can easily find good documentation and videos on that....

February 10, 2023 · 3 min

My Adventures in Virtualization: Installing Proxmox VE on a Mini PC and Setting Up Virtual Machines

When I first heard about Proxmox VE, I knew I had to give it a try. As a tech enthusiast, the idea of creating and managing virtual machines and containers on my own hardware sounded like aa great thing to play around with. So, I set out on a mission to find the perfect device to run Proxmox VE on. After scouring the internet, I stumbled upon a mini PC on AliExpress that seemed to fit the bill....

January 28, 2023 · 3 min

Deploying Hugo Website

In one of my previous posts I wrote about installing hugo. Of course, unless you want to keep your posts only private, you will need to publish your blog somewhere. Hugo’s website provides a few options for hosting and deployment of your blog. Since I already run an Apache web server on a virtual machine on Linode, I decided to simply deploy my blog using scp. BTW, I highly recommend Linode as your cloud provider....

December 15, 2022 · 1 min · Evgeni Semenov

Installing LineageOS 19.1 on OnePlus 5

Do you have an old Android phone laying around which has not received any official updates for a long time? Or you might be concerned about Google tracking your device and collecting tons of data about you and want to try open source android without bloatware and trackers? Or maybe you would like to try privacy oriented OS on your mobile phone? These are just a few examples on why would you want to install Lineage OS on your phone....

November 3, 2022 · 3 min · Evgeni Semenov

Using apt-get in Linux

If you are not new to Linux you probably have heard about apt (Advanced Packaging Tool) before. It is used on Debian -based Linux distributions (such as, for example Ubuntu) and allows you to install, remove and update packages. Here are a few examples on how to use the tool. Updating your system using apt-get On every newly installed Debian based Linux you want to run: sudo apt-get update This will synchronize the index of packages from the sources....

October 24, 2022 · 2 min · Evgeni Semenov

About bitcoin mining

With all the hype around blockchain, cryptocurrencies, NFTs etc, you probably hear a lot about mining - in terms of how profitable this is, or how miners compete with each other to earn bitcoin (or any other crypto where proof-of-work concept is used). But have you ever wondered what is mining process exactly? Further on I will use the example of crypto pioneer - Bitcoin. First allow me to quote a definition of bitcoin mining from www....

October 18, 2022 · 9 min · Evgeni Semenov