Getting device information from your visitors

Getting device information from your visitors Mobiledetect is awesome, but it doesn’t extract information for desktop devices and browser. So I decided to create my own package that extends Mobiledetect; meet the Agent. Agent parses the User-Agent header that your browser sends along with all HTTP requests. It uses a list of patterns to detect ...

Protect your server with fail2ban

Protect your server with fail2ban Fail2ban is a must-have for every SSH-enabled server that is connected to the internet. It protects services such as SSH from illegitimate access.

Find large directories and files on Debian or Ubuntu with ncdu

Find large directories and files on Debian or Ubuntu with ncdu Time to stop using the find command to search for large directories or files on your servers. There’s a neat disk usage analyser tool called ncdu that you should definitely give a try!

Generate short unique ids from integers

Generate short unique ids from integers Hashids is a small open-source library that generates short, unique, non-sequential ids from numbers. It converts numbers like 347 into strings like “yr8”, or array of numbers like [27, 986] into “3kTMd”. You can also decode those ids back. This is useful in bundling several parameters into one or ...

Visualizing a Classic CPU In Action: The 6502

Visualizing a Classic CPU In Action: The 6502 Visual Transistor-level Simulation of the 6502 CPU and other chips!