Tutorials

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

Replace a line in a text file automatically every week with Linux bash shell 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.

How to create a simple contact form in HTML and PHP

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.

How to embed 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.

How to offsetting HTML anchor links to adjust for 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.

How to leverage browser caching for images, CSS and JavaScript

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

How to use rsync to synchronize local and remote directories (good tips for backups).

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

How to backup all your important data automatically in Linux using bash script.

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

Animated smooth scrolling effect for one-page website

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

Add or remove class with JQuery based on vertical scroll

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

Add images to Drupal Views Search Page for certain results.

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.

Buggy PHP Code: 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.

An introduction to Drush - this tool changes your world

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.

How to parse Flickr's XML feed with PHP

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

A basic MySQL tutorial with examples - how to create and control MySQL databases

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

How to parse XML feed with PHP5 - XML for PHP developers

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.

Complete guide how to setup a TeamSpeak 3 Server as service on Linux server

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

How to generating SSH keys - Log in to servers without passwords

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

How to create a simple popup window with cookie support

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.