Change default editor linux

sudo update-alternatives –config editor There are 4 choices for the alternative editor (providing /usr/bin/editor). Selection Path Priority Status ———————————————————— * 0 /bin/nano 40 auto mode 1 /bin/ed -100 manual mode 2 /bin/nano 40 manual mode 3 /usr/bin/vim.basic 30 manual mode 4 /usr/bin/vim.tiny 10 manual mode Press enter to keep the…

Avada fatal error operator not supported for strings revslider

Fatal error: Uncaught Error: [] operator not supported for strings in /wp-content/plugins/revslider/inc_php/framework/base_admin.class.php:73 with PHP 7 and code using the empty-index array push syntax Solution: Add line $arrMetaBoxes = [];  // creates an array Line 73 self::$arrMetaBoxes[] = $box;   In revslider/includes/framework/base-admin.class.php, I changed the following line private static $arrMetaBoxes = ”; //option boxes…

Windows force group update to be applied

When you make a change to a Group Policy Object (GPO), the change takes place on a Windows 2000 domain controller. The change is replicated to all other domain controllers in the Active Directory. All Windows computers in the Active Directory check for modifications to GPOs at regular intervals. If they find changes, they apply…

Change default editor from nano to vi

Type sudo update-alternatives –config editor You will get a text like below. There are 4 choices for the alternative editor (providing /usr/bin/editor). Selection Path Priority Status ———————————————————— * 0 /bin/nano 40 auto mode 1 /bin/ed -100 manual mode 2 /bin/nano 40 manual mode 3 /usr/bin/vim.basic 30 manual mode 4 /usr/bin/vim.tiny 10…

How to add print template for Print Manager for WooCommerce

cd print-google-cloud-print-gcp-woocommerce/includes vi Templates.php class Templates { public function __construct() { self::registerTemplate(new \Zprint\Templates\Customer()); self::registerTemplate(new \Zprint\Templates\Details()); self::registerTemplate(new \Zprint\Templates\Order()); self::registerTemplate(new \Zprint\Templates\New());//added to use new template cd print-google-cloud-print-gcp-woocommerce/templates add new-html.php new-plain.php