Tutorials

Step-by-step technical guides on Docker, Linux, Python, Go, and more.

Page 27 of 37

2 min readIntermediate

Linux: How to use ufw to block visitors by country?

Learn hot to block users by country or region on Linux using a list of IPs.

1 min readBeginner

MySQL my.cnf recommended optimization

MySQL configuration by default comes with general configuration that can be optmized for specific configuration. Most of modern server configuration should be changed to improve performance. In this brief tutorial we explain how to improve performance by tunning my.cnf configurations.

1 min readBeginner

How to Install aircrack-ng on Debian Linux?

How to install lastest aircrack-ng version on debian linux or in any linux distribution (compilation from official source code)

2 min readBeginner

Python: How to Parse String to a Number (Float or Integer)

We explain how to parse numeric expression like 3.144 to float or 42 to intefers using python.

2 min readBeginner

Which is the proper way to compare strings in Java?

When comparing string in java you could get confused with unexpected result using ==. Should you use equals() in java to compare strings?

1 min readBeginner

How to Redirect using HTML

To redriect using HTML add a meta with the desired url. Check here for more details

1 min readBeginner

Python: Recursive File Search in Directories

How to search files and directories using python (recursively file search with python). Code examples for python 2 and 3.

1 min readIntermediate

How to write IF...THEN in an SQL query? (sql server)

In this tutorial we are going to explain how to wirte an IF...THEN statement with SQL Server. We use the sql standard CASE and also explain the IIF statement.

2 min readBeginner

CloudFlare: How to log original IP with nginx

4 min readBeginner

Analysis of travel salesman problem

Travel salesman problem (TSP) is a very well know computer science problem which is really easy to understand but it's a NP-hard problem. The problem is about finding te shortest possible route that visits each city and returns to the origin. Here we analyze the problem and variants of it.