Tutorials

Easy to read tutorials / guides for web developers and server admins. The articles are based on my own experiences and information that I have found on the internet.

03May
2023

Upgrading PHP 7.4 to 8.2: Navigating common code problems

Learn how to safely upgrade your PHP website from version 7.4 to 8.2, including how to navigate common code problems and compatibility issues.
02May
2023

Add or remove HTML class with vanilla JavaScript based on vertical scroll

Learn how to use vanilla JavaScript to add or remove CSS classes on HTML elements to change the appearance of the website when scrolling down.
02May
2023

Secure your Ubuntu server with ease: automate security package updates

Protect your Ubuntu server effortlessly by automating security package updates. Safeguard your system from potential threats with ease.
01May
2023

Ubuntu server package updates

Control the package updates on your Ubuntu server. With these step-by-step instructions, you can learn how to manually update / upgrade your Ubuntu.
01Apr
2023

Linux server journal size management

A guide on how to manage server journal size and delete old unnecessary files after a certain time or file size.
01Apr
2023

Ubuntu server log file size management

A guide on how to manage Ubuntu / Debian server log file sizes and delete old unnecessary log files after a certain time.
30Mar
2023

Running NuxtJS in a Docker container

Guide how to create and run a Nuxt PWA project in a Docker container and how to share the project without Docker Hub
16Jan
2023

Customizing theme to add image width and height automatically in WordPress

How to add the width and height attributes to all images in WordPress automatically
10Jan
2023

Configure SMTP on WordPress without using a plugin

How to send email reliably from WordPress for free and without third-party plugins
09Jan
2023

PHP mail function test

This is a useful PHP script for testing your hosting to ensure that you can send emails from PHP-based sites that include a contact form or something similar.
29Dec
2022

Redirect old domain to new domain in WordPress via .htaccess

How to use .htaccess to redirect all traffic from the old and still valid domain to the new domain in the same WordPress directory.
08Aug
2021

Upgrade Debian 9 Stretch to Debian 10 Buster

How to safely upgrade Debian GNU/Linux from Stretch (9) to Buster (10) while ensuring that all packages continue to function.
23Jul
2021

Creating a bootable Manjaro USB memory stick on Linux

Tips for creating a bootable USB flash drive in Linux. Etcher is now the simplest and best way to create a bootable USB drive.
09Apr
2020

Remove unnecessary PHP sessions files on Debian

How to locate hidden system files that continue to clog hard drives, and how to delete old and unnecessary PHP session files.
12Feb
2017

Replace a line in a text file automatically every week with Linux bash shell script

My goal was to read the number in the file, and if the number is smaller than three add one to it, and if bigger reset the number to one. Write new to the file.
01Jan
2017

Create a simple contact form in HTML, PHP and SQL

HTML Forms are one of the main points of interaction between a user and a web site. This tutorial teaches you how to make one.
10Nov
2016

Embed Flickr photo albums on ProcessWire

A guide to setting up Flickr photo galleries on ProcessWire. I modified Sergio's photo downloading script and made a Photobox effect for galleries.
04Oct
2016

Offsetting achor links with fixed header (CSS only)

When using anchor links with a fixed header, the body text may be hidden beneath the header. CSS only, no need for JavaScript.
12Sep
2016

Leverage browser caching for images, CSS and JavaScript apache2

Page load times can be significantly reduced by requesting that visitors' browsers save and reuse the files on your website.
14May
2016

Utilize rsync to backup or sync data on Linux

Rsync is a powerful tool for transferring and synchronizing data between local and remote systems.
24Apr
2016

Backup your data automatically on Linux

One of the most crucial aspects of running a server is backups, and these scripts assist in automatically backing up your critical data.
21Apr
2016

Animated smooth scrolling effect for one-page website

Every one-page website needs an animated smooth scrolling effect, and this script will rock your site.
02Mar
2016

Add or remove class with JQuery based on vertical scroll

A tutorial on how to use JQuery and CSS to change the appearance of the website when scrolling down.
01Mar
2016

Add images to Drupal Views Search Page

Drupal Views is a powerful tool for all kind of mixed results but how to add images to Views' Page when url have '?'. Blocks can't help you, but PHP can.
21Feb
2016

The 10 most common mistakes PHP developers make

Are you guilty of one of these common PHP mistakes? Refer to this list next time you're debugging PHP code.
27Jan
2016

A beginner's guide to Drush

Drush is a command-line shell and scripting interface for Drupal. This tutorial help you understand how Drush works and how it makes your life easier.
24Oct
2015

Use PHP to parse Flickr's XML feed

This simple XML Flickr feed parser retrieves the most recent photos and displays them with links and thumbnails.
20Oct
2015

A beginner's guide to MySQL / MariaDB

A basic tutorial on how to take control of a MySQL / MariaDB server, create a database and a user, and store data in a MySQL database.
01Oct
2015

Parse an XML document with PHP

A simple PHP script that can save an XML document to the server and use it for the website. Replaces files that are more than 24 hours old.
29Sep
2015

Set up TeamSpeak 3 server

Complete guide for installing TeamSpeak 3 as a service on a Linux server.
18Sep
2015

Create SSH keys and login to servers without using passwords

SSH keys are used to authenticate yourself to an SSH server by utilizing public-key cryptography and challenge-response authentication.
16Sep
2015

How to create a simple popup

Simple PHP / JavaScript popup created for Drupal but can be used with any platform. Popup works only once and again after the cookie is cleared.