Tag: Linux

Posted in DevOps/Sysadmin hacks

Navigating Phishing Attacks on My Mail Server: Lessons Learned and Effective Security Strategies

What to do if your mail server is targeted by phishing? One of the users of my…

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 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

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:…

Posted in Python

How to run Python bot as a service in Ubuntu Linux?

I like building Python bots. Especially for telegram – I think this messenger is very relevant and…

raspberry-pi-temp-control
Posted in Arduino

Linux Ubuntu Raspberry PI temperature control script

Today I am sharing my simple and at the same time useful Linux script which checks the…

Posted in Python

Python IMAP Email cleaner – automatic delete old messages

I don’t keep a secret, also I work as a system administrator in an enterprise. I have…

Posted in Python Web

Work Accounting System Python/Django

It’s been 2 months since I started learning Python. Just before the New Year holidays, I finished…

Posted in Web

Auto update IP address via Post Query for Dynamic DNS Services UNIX

This script is suitable for all systems based on Linux or UNIX-like operating systems. The main functions…