Recent Posts

Posted in Python

InstagramSizeBot: Empowering Instagram Posts with Square Photos and Small Frames

The provided program is a Python script that utilizes the aiogram library and PIL (Python Imaging Library)…

Posted in DevOps/Sysadmin hacks

How to set Timezone and Region to all computers of Active Directory

I needed to massively change the region and timezone settings for all computers. To do this, I…

Posted in Coding Python

Server control by Telegram Bot – Run Shell commands by Python

I have more than one Telegram bots for different purposes but one day I realise I need…

Posted in DevOps/Sysadmin hacks

macOS hacks

How to create and run virtual environment on macOS? python3 -m venv venv source venv/bin/activate  

Posted in Coding

Base syntax differences between Python and JavaScript – part 1

Here are some of the syntax differences between Python and JavaScript: Syntax for defining variables: In Python,…

Posted in DevOps/Sysadmin hacks Python

iLo server power on Python script for Telegram Bot

Having a Python Telegram bot with the function to power on servers through HP iLO can be…

Posted in Python

How to get the length of a cursor from mongodb using Python?

In MongoDB, cursors are returned by queries and allow you to iterate over the results of a…

Posted in DevOps/Sysadmin hacks Python

Automatic gracefully shutdown of virtual machines and ESXI hypervisor from telegram bot

Having a Telegram bot interface to control your network can be convenient for a few reasons: Remote…

Posted in DevOps/Sysadmin hacks

Windows hacks

sfc /scannow termsrv.dll error Run regedit and run Find on: x86_microsoft-windows-t..teconnectionmanager_31bf3856ad364e35_6.0.6001.18000_none_8e9f41c854441762 (as in sbs.log)

Posted in DevOps/Sysadmin hacks

GNU/Linux hacks

Show folders size sorted: root@mail:~# du -h –max-depth=1 /home/admin/mail/evgdev.com/ | sort -h   Route tricks Show routes:…