How to play a m4a/mp3 file via html file

There is licensing issue playing m4a formats in modern browsers

So your browser’s console will generate something as the following:

Cannot play media. No decoders for requested formats: audio/m4a

Just use mp3, here is example:

Download mp3 sample and insert it into your html file:

wget https://file-examples.com/wp-content/uploads/2017/11/file_example_MP3_700KB.mp3
Read the rest

Configure CSF on CentOS 7

Install needful packages if you haven’t yet

yum install wget vim perl-libwww-perl.noarch perl-Time-HiRes -y

Download and install CSF

cd /usr/src/
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

Run test:

cd /usr/local/csf/bin/
perl csftest.pl

Disable default Centos 7 firewall if you have it installed

systemctl stop firewalld
systemctl disable firewalld

Disable testing mode

cd /etc/csf/
vim csf.conf
Read the rest

Xubuntu, fastboot, ADB and Redmi Note 7 adventures

Install adb and fastboot:

sudo su
apt-get update
apt-get install android-tools-adb android-tools-fastboot -y

Supposed your phone device bootloader is unblocked:

– Settings –> About Phone –> MIUI version and MIUI Version 7 Times
– Settings –> Additional Settings –> Developer Options and check “OEM unlocking” [should be already checked] and “USB debugging.”… Read the rest

How to install templatemonster theme using wp-cli

Upload your template_XXXXX_XXXXXXXXXXX.zip to folder where your WordPress is installed

Unzip template_XXXXX_XXXXXXXXXXX.zip to some temporary folder.

Then find two zip files under temp_extract/theme/ folder and move them to document root directory of your website.

unzip template_XXXXX_XXXXXXXXXXX.zip -d temp_extract
mv temp_extract/theme/CherryFramework.zip ./
Read the rest

How to change firefox default tab size and fix wonky tab behavior

Under your profile folder create a chrome/ folder

cd /home/`whoami`/.mozilla/firefox/*default*
mkdir chrome
cd chrome

Create userChrome.css file

touch userChrome.css

Update userChrome.css with the following lines:

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
.tabbrowser-tab:not([pinned]) {
max-width: 80px !important;
}
.tabbrowser-tab:not([pinned]):not([fadein]) {
max-width: 0.1px !important;
}

 

Restart firefox and enjoy

Source:
https://www.askvg.com/how-to-customize-and-change-width-or-length-of-tabs-in-mozilla-firefox/Read the rest

Drupal 7 Content Encoding Error

Append into settings.php

$conf = array(
'cache' => '0',
'preprocess_css' => '0',
'preprocess_js' => '0',
'block_cache' => '0',
'page_compression' => '0',
);

Then start investigation which one is cause of the error

Source: https://drupal.stackexchange.com/questions/78764/content-encoding-error-after-enabling-cache-aggregation-and-compression

 … Read the rest

How to reinstall broken WordPress plugin using wp-cli

If you cannot execute wp-cli command due to the error generated by one of your plugins

Command:

wp plugin status

Output:

Warning: include_once(/home/username/public_html/subdomains/domain.com/wp-content/plugins/woocommerce/includes/libraries/wp-async-request.php): failed to open stream: No such file or directory in /home/username/public_html/subdomains/domain.com/wp-content/plugins/woocommerce-abandoned-cart/includes/background-processes/wcal-async-request.php on line 3

 

Just use –skip-plugins parameter along with –force

As result you will get:

wp plugin install woocommerce --skip-plugins --force

 … Read the rest