How to upgrade ClientExec to the latest version

The update process is really simple

1. Backup your MySQL Database

2. Backup your files

3. Remove from folder where the ClientExec installation is located all except config.php and uploads/ folder

4. Download the latest version from https://www.clientexec.com/download.php?fuse=files&view=FileList

5. Place all files from zip except config.phpRead the rest

How to mount your Android device over WiFi

Install on your android device Samba Server (I believe this best one)

https://play.google.com/store/apps/details?id=com.icecoldapps.sambaserver&hl=en

There is not additional configuration on Windows 7,8. Simply run Windows+R and type here \\XX.XX.XX.XX

Where XX.XX.XX.XX is your device's local IP address

Xubuntu:

Ensure XX.XX.XX.XX is pinging, if not try to either restart WiFi or reboot your phone

Try to mount your device

sudo mkdir /mnt/android/

sudo mount -t cifs //XX.XX.XX.XX/storage
Read the rest

Changing Drupal’s theme via mysql command line

Download for example "garland" theme to ./sites/all/themes folder from

https://www.drupal.org/project/garland

Then:

UPDATE dr_system SET status=1 WHERE name = 'garland';

Then:

UPDATE dr_variable SET value='s:7:"garland"' WHERE name = 'theme_default';
TRUNCATE dr_cache;
TRUNCATE dr_cache_bootstrap;
TRUNCATE dr_cache_block;

Here is Drush method

drush vset theme_default garland
Read the rest

How to reduce a size of image files

ImageMagick is required

sudo apt-get install imagemagick -y

Reduce image size by 25%

convert image.jpg -resize 25% output.jpg

It will decrese image file size from ~6.1M to ~300K. So pretty fine for website loading

For mass converting run this from the inside folder which contains *.jpg… Read the rest

How to enable viewing HTML content in Horde?

The post is outdated, please read this one https://alltime.pp.ua/blog/how-to-enable-inline-html-display-in-horde/

Edit the following file

vi /usr/local/cpanel/base/horde/imp/config/mime_drivers.php

Replace the line :45 from:

 $mime_drivers['imp']['plain']['inline'] = false;

to

 $mime_drivers['imp']['plain']['inline'] = true;

Done!

 

 

 … Read the rest

How to run a shell command as another user without Shell Access enabling

It needs if you don't want to waste time to enable Shell Access for specific user to run some command from his shell

sudo -H -u someuser bash -c 'uptime'

Example of using:

cd ~someuser/www
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
Read the rest

How to install WP-CLI

WP-CLI is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser

cd
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod 755 wp-cli.phar
mv wp-cli.phar wp
mkdir wp_cli
mv wp wp_cli
echo "alias wp='~/wp_cli/wp'" >> ~/.bashrc
Read the rest

How to install Drush

Drush is an awesome shell interface for managing Drupal right from your server command line. It is a very useful tool as it helps you perform various admin tasks using just one or two commands in the terminal

Find your appropriated Drush version for your Drupal

http://docs.drush.org/en/master/install/Read the rest