Remove CleanMyMac X

Rm -rf ~/Library/Application Support/CleanMyMac Setapp/CleanMyMac X

Add a read-only permission to CleanMyMac X

Mkdir ~/Library/Application Support/CleanMyMac Setapp/CleanMyMac X
Chmod 444 ~/Library/Application Support/CleanMyMac Setapp/CleanMyMac X
Friday, 22 November 2019 08:50

How to change your version of your Mac OS?

  • Open Terminal and enter
    sudo nano /System/Library/CoreServices/SystemVersion.plist

    and enter your admin password.
  • Change the two strings "10.11" to "10.12". Leave the minor version number (e.g. 0, 1, 2...) like it is. Hit ctrlO and Enter to write the file to disk.
  • Hit ctrlX to quit nano

I have Gutenberg plugin installed in WordPress and am trying to remove the CSS:

<link rel='stylesheet' id='wp-block-library-css'  href='http://site.loc/wp-includes/css/dist/block-library/style.min.css' type='text/css' media='all' />
<link rel='stylesheet' id='wp-components-css'  href='http://site.loc/wp-includes/css/dist/components/style.min.css' type='text/css' media='all' />
<link rel='stylesheet' id='wc-block-style-css'  href='http://site.loc/wp-content/plugins/woo-gutenberg-products-block/build/style.css' type='text/css' media='all' />

I am use this code to to remove default style.

function my_deregister_styles_and_scripts() {
add_action( 'wp_print_styles', 'my_deregister_styles_and_scripts', 100 );


Tired of the message “Hola! Please activate your copy of Visual Composer to receive automatic updates.”? Add this code to you child_theme/function.php

setcookie('vchideactivationmsg', '1', strtotime('+3 years'), '/');
setcookie('vchideactivationmsg_vc11', (defined('WPB_VC_VERSION') ? WPB_VC_VERSION : '1'), strtotime('+3 years'), '/');

Looks super! keep it up

Today, Magento is releasing new versions of Magento Commerce and Open Source to increase product security, performance and functionality:

  • Magento Commerce and Open Source 2.3.1
  • Magento Commerce and Open Source 2.2.8
  • Magento Commerce and Open Source 2.1.17
  • Magento Commerce
  • Magento Open Source
  • SUPEE-11086 to patch earlier Magento 1.x versions

Open function.php and add this code:

// change counts at blog pages
add_filter('widget_tag_cloud_args', 'tag_widget_limit'); 
function tag_widget_limit($args){
 if(isset($args['taxonomy']) && $args['taxonomy'] == 'post_tag'){
  $args['number'] = 300; //Limit number of tags
 return $args;

// change counts in Woocomerce
function custom_woocommerce_tag_cloud_widget() {
    $args = array(
        'number' => 500,
        'taxonomy' => 'product_tag'
    return $args;
add_filter( 'woocommerce_product_tag_cloud_widget_args', 'custom_woocommerce_tag_cloud_widget' );


Where does MacBook save Sierra OS update files?

Open the Finder and press Ctrl + Shift + G and run command:

Thursday, 07 February 2019 18:42

How to change screenshot format png → jpg

To save screenshots in JPG, execute the following commands in the terminal:

defaults write type jpg;killall SystemUIServer

macOS also support: tiff, pdf, bmp & pict.

These instructions assume you’re using the Terminal app out of the box, without ZSH or any fancy prompts like that. I trust you will be able to adapt these instructions yourself if you do.

Step 1 : Create a symlink called sublime

sudo ln -s "/Applications/Sublime" /usr/local/bin/sublime

Step 2 : Check that your system profile can find the symlink you just created.

open ~/.bash_profile

Step 3 : Add both these lines & then save the file :

alias subl="open -a /Applications/Sublime\"

export PATH=/usr/local/bin:$PATH

Step 4 : Reload your bash_profile :

source ~/.bash_profile

Done ! You can now navigate to any of your code/script folders in Terminal and open them in Sublime with the following commands :

subl .
subl .zshrc
Tuesday, 16 October 2018 15:59

How to make current window screenshot in Mac

Command + Shift + 4 then hit Spacebar

To disable the creation of .ds_store files, launch the Terminal application from /Applications/Utilities/ and enter the following command string exactly:

defaults write DSDontWriteNetworkStores true

Reboot the Mac for changes to take full effect.

The login screen on your Mac is perfectly functional as it is, but if you want to spice it up a little bit, blogger Jacob Salmela shows you how to customize the login screen with a logo of your choosing.

If you don't want to install a whole program just for a simple tweak it's easy to do manually. All you need is a PNG that's 428 X 248. Then, you'll need to save it as four different files.

Here's instructions:

You need four copies of this file, and they need to be named:

  • apple.png
  • apple@2x.png
  • apple_s1.png
  • apple_s1@2x.png

Once they are named correctly, just drag them into the following path:


and then choose to replace all of them.

That's it, log out, and you should see your new logo. Head over to Salmela's site for a few sample images and instructions for making your own.

After I check the folder, I just know that the folder owned by “root” user.

ls -lah
sudo chown whoami .config


To disable the creation of .ds_store files, launch the Terminal application from /Applications/Utilities/ and enter the following command string exactly:

defaults write DSDontWriteNetworkStores true

First - open Finder -> Go to folder -> /Library/Caches

The second - find file and replays it with your image ;) filename need be same = You also may rename jpg file to png without converting.

1520267119870.jpeg 8d0e6

Open Terminal and enter the following in a single line:

/System/Library/CoreServices/Menu\ Extras/ -suspend

Launch the Terminal, you'll see a list of all your messages. From the mail prompt, do

$ mail
? delete *
? q

And that should be it. Make sure do to the q after the delete * command, that saves the changes to disk.

Here’s the command. Just paste this line into your Terminal, and press return.

defaults write disable-shadow -bool true
killall SystemUIServer

To test out your new screenshot settings, just take a quick screenshot by pressing the key combination command-shift-4, followed by the spacebar. You should end up with a beautifully clean window screenshot, free of drop shadows. The best part about this is that your screenshot’s dimensions will now finally match the window’s dimensions, without all that added padding introduced by the drop shadow. Nice, huh?

If you no longer want these cleaned up windows, you can switch back to the normal shadowed screenshots by pasting the following into your Terminal:

defaults write disable-shadow -bool false
killall SystemUIServer

Well done!

On Windows, I could use Tab to shift focus from button to button, so I could "click" on the desired button without having to use a mouse.

It appears that I can't do the same thing on a Mac, or is there a way to do it that I didn't realize?

There is. From System Preferences, under Keyboard » Keyboard Shortcuts, you can enable Full Keyboard navigation. You can also change this by pressing Control+F7

Thursday, 11 January 2018 21:28

How to show popup after page load?

For example - if I want to show popup after page load it appears plus how to code it as like it appears after 1 second of page load.

/* Popup messages */

#popup-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255,255,255,.6);
	z-index: 1001;
#popup {
	width: 1017px;
	height: 581px;
	background: url("/images/system/domotex-2018.jpg");
	text-align: center;
	color: #fff;
	border: 1px solid #888;

	box-shadow: #64686e 0px 0px 3px 3px;
		-moz-box-shadow: #64686e 0px 0px 3px 3px;
		-webkit-box-shadow: #64686e 0px 0px 3px 3px;
	position: relative;
	top: 10%;
	margin: 0 auto;
/* Popup's styles */
#popup {
	background: rgba(38, 38, 38, 0.84) none repeat scroll 0 0;
	margin: 30px auto 0;
	width: 487px;
#popup h2 {
	color: #fff;
	padding: 25px;
	margin-top: 15px;
#popup p {
	padding: 0 0 10px;
#popup input {
	background: rgba(91, 91, 91, 0.39) none repeat scroll 0 0;
	border: medium none;
	color: #777;
	height: 32px;
	padding: 5px;
	position: absolute;
	right: 0;
	top: 0;
	width: 32px;
Monday, 18 December 2017 14:52

Free download kunena 5 theme - BlueEagle5

If you want download free theme for Kunena5 Forum - do it.

If you like Theme then you can download latest version from GitHub

or direct from this site

Thursday, 14 December 2017 15:59

How to show all errors in php?

If you need show some errors in your php code - use this php notation:

// enable showing errors in PHP
ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT);

Hi there! Run command to your Firefox (since v44~)

about:config => dom.push.enabled
dom.webnotifications.enabled => false

// and all messages, where you can see Push :)

 screen shot 2017 12 04 at 8.32.59 pm 0674e

MacOS comes with Python installed. But to make sure that you have Python installed open the terminal and run the following command.

python --version

If this command returns a version number that means Python exists. Which also means that you already have access to easy_install considering you are using macOS/OSX. Now, all you have to do is run the following command.

sudo easy_install pip

After that, pip will be installed and you'll be able to use it for installing other packages. For try if pip working well use:

pip --version

If you want install another modules - you can do this, for example:

pip install regex

Then runing

sudo pip3 install beautifulsoup4

If you use Yoast for WP and press button 'Remove Yoast SEO Comments' - you can show this errors:

Fatal error: Uncaught Error: Call to undefined method RYSC::head_product_name() 
in /home/youraccount/ : eval()'d code:17 
Stack trace: #0 /home/youraccount/ eval() 
#1 /home/youraccount/ RYSC->rewrite('') 
#2 /home/youraccount/ WP_Hook->apply_filters(NULL, Array) 
#3 /home/youraccount/ WP_Hook->do_action(Array) 
#4 /home/youraccount/ do_action('wp_head') 
#5 /home/youraccount/ wp_head() 
#6 /home/youraccount/ require_once('/home/youraccount/...') 
#7 /home/youraccount/ load_template in /home/youraccount/ : eval()'d code on line 17

To fix it - Go to FTP -> open www/wp-content/plugins/ -> find folder remove-yoast-seo-comments and remove it or delete or rename (-remove-yoast-seo-comments)

Work done!

How to fix OS X application can't be verified | OS X El Capitan | macOS Sierra | Yosemite Corrupted or Damaged during Downloading in Easy Steps.

"This copy of the install OS X Yosemite (any OS X) application can't be verified. It may have been corrupted or tampered with during downloading" 

Try change system date using Terminal and it will work. Run this command in Terminal (go to Utilities -> Terminal):

Date 0320015315

Date 0320015315 (month_date_time_year) String of numbers = month 03, date 20, time 0153, and year 15, combined. 

Microdata makes it possible to search engines to understand important details about your site's content. Microdata provides Google and Bing with extra information about your content such as names, descriptions, dates and ratings. And, because search engines can understand your data more clearly, they often reward you with a higher ranking.

In Joomla, microdata support was quietly added in Joomla 3.3 which was released in April 2014. The best to way to provide microdata is by using your template.

Some templates provide microdata support, but many do not. If your template was released before April 2014, it probably doesn't support microdata and will need to be updated.

I'm going to show you how to test your template and then add microdata if needed.

function compresscss ( $data, $url ) {
        global $current_css_url;
        $current_css_url = $url;
        /* remove comments */
        $data = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $data);
        /* remove tabs, spaces, new lines, etc. */
        $data = str_replace(array("\r\n", "\r", "\n", "\t", '  ', '    ', '    '), ' ', $data);
        /* remove unnecessary spaces */
        $data = preg_replace('/[ ]+([{};,:])/', '\1', $data);
        $data = preg_replace('/([{};,:])[ ]+/', '\1', $data);
        /* remove empty class */
        $data = preg_replace('/(\}([^\}]*\{\})+)/', '}', $data);
        /* remove PHP code */
        $data = preg_replace('/<\?(.*?)\?>/mix', '', $data);
        /* replace url*/
        $data = preg_replace_callback('/url\(([^\)]*)\)/', 'replaceurl', $data);
        return $data;


In this article, I would like to share some hacking tips about how to improve User Experience (UX) for eCommerce websites. This is a very interesting topic because by increasing UX, you can generate more sales and also obtain and maintain customers. No need to wait more, we are going to the first tip now.

Use white space in your favor.

With ecommerce websites, white space can be used in order to improve user experience. We call any blank area on your site is white space, and no matter what color it is. Using white space is a good way to highlight images of products and their details. If you present too many products in only one page, it seems that you are trying to force the consumers to buy all those, and sometimes it also makes your layout more clutter.

Page 1 of 2