Drupal 7.x User object reference Guide

Submitted by admin on Wed, 10/05/2016 - 14:08

$user->uid                            User ID
$user->name                      User name
$user->pass                          Encrypted password
$user->mail                          User email address
$user->theme                      (?) Name of the theme shown for this user (no longer changeable in core but can be in contrib)
$user->signature                  Signature as set in the user account settings
$user->signature_format      Text format to apply to signature

How To Use Rsync to Sync Local and Remote Directories on a VPS

Submitted by admin on Thu, 09/29/2016 - 14:10

Introduction

Rsync, which stands for "remote sync", is a remote and local file synchronization tool. It uses an algorithm that minimizes the amount of data copied by only moving the portions of files that have changed.

In this guide, we will cover the basic usage of this powerful utility. We will be using an Ubuntu 12.04 VPS in the examples, but you can use any modern Linux distribution to follow along.

Drupal 7.x Node object reference Guide

Submitted by admin on Thu, 09/08/2016 - 14:20

7.x - $node - Node object

$node->nid Node ID.
$node->vid The revision ID of the current version of this node.
$node->type Type of node (e.g.

Linux Server .conf Files Directory

Submitted by admin on Tue, 08/02/2016 - 19:37

Default options are read from the following files in the given order:


Default options are read from the following files in the given order:
/etc/my.cnf
/etc/mysql/my.cnf
/usr/etc/my.cnf
~/.my.cnf

restarting mysql or mysqld services


service mysqld start
service mysqld stop
service mysqld restart

Useful Linux Commands

Submitted by admin on Tue, 08/02/2016 - 19:32

Dealing with crontab

crontab [-u user] [-l | -r | -e] [-i] [-s]
-u  user Specifies the user whose crontab is to be viewed or modified. If this option is not given, crontab opens the crontab of the user who ran crontab.