Tutorials

A collection of tutorials about things I've learned or discovered. Most of the tutorials are easy to read and to learn.

Tutorials
Feb 12, 2017

Change number in file with Bash script

My goal was 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.

Jan 01, 2017

How to create a simple contact form

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.

Nov 10, 2016

Flickr photo albums on ProcessWire

A tutorial how to set up Flickr photo galleries on ProcessWire. I modified Sergio's photo downloading script and made Photobox effect for galleries.

Oct 04, 2016

Offsetting anchor links with fixed header

Using anchor links with a fixed header is a problem, as the body text may be hidden underneath the header. No JavaScript needed.

Sep 12, 2016

How to leverage browser caching

Page load times can be significantly improved by asking visitors to save and reuse the files included in your website.

May 14, 2016

Use rsync to sync local and remove files

Rsync is a powerful tool that facilitates the transfer and synchronization of data between both local and remote systems.

Apr 24, 2016

How to automatic backup data in Linux

Backups are one of the most important things when running a server and these scripts help backup your important data automatically.

Apr 21, 2016

Animated smooth scrolling effect

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

Mar 02, 2016

Add or remove class on vertical scroll

A tutorial to show how use JavaScript and CSS to change appearance of when scrolling down on the website.

Mar 01, 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.

Feb 21, 2016

The 10 most common mistakes with PHP

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

Jan 27, 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.

Oct 24, 2015

How to parse an XML Flickr feed

This simple XML Flickr feed parser fetch newest photos and show them with links and thumbnails.

Oct 20, 2015

A beginner's guide to MySQL / MariaDB

A basic tutorial how to take control of MySQL / MariaDB server, how to make a database and a user, and how to store information in the MySQL database.

Oct 01, 2015

Parse an XML document with PHP

A simple PHP script which can store an XML document as a file to the server and use it for the website. Replaces file older than 24 hours.

Sep 30, 2015

How to set up TeamSpeak 3 server

Tutorial how to set up and run a TeamSpeak 3 server as service on Linux.

Sep 19, 2015

How to generating SSH keys

SSH keys serve as a means of identifying yourself to an SSH server using public-key cryptography and challenge-response authentication.

Sep 16, 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.