春江暮客

Predicting Virmach Black Friday VPS Prices Using sklearn Linear Regression and Alerts

TECHNOLOGY
Predicting Virmach Black Friday VPS Prices Using sklearn Linear Regression and Alerts

Virmach's Black Friday machines appear and disappear rapidly. For hosting enthusiasts, constantly checking current VPS prices and deciding whether to buy is troublesome. This article lists Black Friday machine configurations using sklearn and predicts VPS prices with machine learning to alert users if prices are cheap.

VPS Performance and Network One-Click Test Script

TECHNOLOGY
VPS Performance and Network One-Click Test Script

During the recent Black Friday sales, I grabbed a special machine from Virmach, so I thought of testing its performance by running some VPS performance and network tests since the machine looks pretty good.

Using find and sed to Batch Replace Strings in Text

TECHNOLOGY
Using find and sed to Batch Replace Strings in Text

How to batch replace strings in Linux? At first, I thought about using sed with -r or some iterative method, but found sed doesn't support iteration parameters. So, I use find to get files and sed to replace strings.

Manually Create Custom System Service on CentOS7

TECHNOLOGY
Manually Create Custom System Service on CentOS7

During Linux system development, sometimes your program might crash or be stopped. To keep it running continuously, adding the program to the service list is a very good practice.

Solving Expert-Level Sudoku Puzzles Quickly Using Python's Backtracking Algorithm

TECHNOLOGY
Solving Expert-Level Sudoku Puzzles Quickly Using Python's Backtracking Algorithm

I often play Sudoku in my leisure time as a form of relaxation. My usual method involves eliminating duplicates and filling in unique numbers first, then proceeding step by step. However, it's inevitable to guess numbers and adjust based on feedback. So, is there a better algorithm to solve Sudoku puzzles? Here, I will use the backtracking method in Python to solve 9x9 expert-level Sudoku puzzles.

Reducing /home partition size and increasing /root space in CentOS 8

TECHNOLOGY
Reducing /home partition size and increasing /root space in CentOS 8

I recently set up a CentOS 8 virtual machine to experience the latest CentOS system, allocating 127GB of space. Due to actual needs, I found that the /home partition had tens of gigabytes of space.

Configuring IPv6 Passthrough for Padavan Router to Enable IPv6 for All Internal Hosts

TECHNOLOGY
Configuring IPv6 Passthrough for Padavan Router to Enable IPv6 for All Internal Hosts

Both China Telecom and CERNET support IPv6, but router configurations often go wrong. This article explains how to set up a K2 router with Padavan firmware to ensure all hosts under the router have IPv6.

Using requests and multiprocessing for multi-threaded brute-force cracking of default lnmp mysql password

TECHNOLOGY
Using requests and multiprocessing for multi-threaded brute-force cracking of default lnmp mysql password

My blog used the lnmp program to build the web environment, but when I needed to use mysql, I found that the lnmp installation log file was missing and the mysql root password was forgotten. I remember that the lnmp was installed by pressing Enter all the way, and the default lnmp password is lnmp.org# plus 5 random numbers, with only 100,000 possibilities. In this case, brute-forcing 100,000 times will definitely find the password.

Deploying an SSH Honeypot with Docker to Record SSH Login Passwords

TECHNOLOGY
Deploying an SSH Honeypot with Docker to Record SSH Login Passwords

Today I logged into the server and found records of SSH brute force attacks, so I thought I might as well record the hacker's passwords and try logging into his server in reverse.

10 Tips to Improve Your Python Data Analysis Skills

TECHNOLOGY
10 Tips to Improve Your Python Data Analysis Skills

Serialization and Deserialization in Python

TECHNOLOGY
Serialization and Deserialization in Python

Sometimes you may need to temporarily store data so that it can be called directly the next time the program runs, or exchanged between different threads. Serialization is a way to store data in this way, and here we explain Python's serialization and deserialization using the pickle package.

Python Data Visualization - The Post-2000 Gaokao Generation

TECHNOLOGY
Python Data Visualization - The Post-2000 Gaokao Generation