Move cursor up/down a few lines at a time from keyboard shortcut

https://forum.sublimetext.com/t/move-cursor-up-or-down-a-few-lines-at-a-time-from-the-keyboard/28915/12 import sublime import sublime_plugin class MoveAmountCommand(sublime_plugin.TextCommand): def run(self, edit, amount=1, **kwargs): for _ in range(amount): self.view.run_command("move", args=kwargs) Then change key bindings: { "keys": ["alt+up"], "command": "move_amount", "args": { "by": "lines", "forward": false, "amount": 7 } }, { "keys": ["alt+down"], "command": "move_amount", "args": { "by": "lines", "forward": true, "amount": 7 } }, { "keys": ["shift+alt+up"], … Continue reading Move cursor up/down a few lines at a time from keyboard shortcut

How to install Xdebug on CentOS 7

In the past post we introduced how to setup Sublime Text debug with xdebug here: Setup Sublime Text 3 with Xdebug for remote debugging . Here is some notes for xdebug installation in case you get in trouble with install xdebug on CentOS 7. Regarding https://xdebug.org/docs/install, to install xdebug, just run pecl install xdebug on CentOS. However, when I … Continue reading How to install Xdebug on CentOS 7

How To Turn Off MySQL Password Validation On CentOS 7

In MySQL 5.7, when try to change the password, it will show the policy requirements not satisfied: mysql> SET GLOBAL validate_password_length=4; Query OK, 0 rows affected (0.00 sec) mysql> SET PASSWORD FOR 'root' = PASSWORD('abcd'); ERROR 1819 (HY000): Your password does not satisfy the current policy requirements If you want to disable MySQL password validation, … Continue reading How To Turn Off MySQL Password Validation On CentOS 7

WordPress Cache Benchmarks (AB Testing): WP Super Cache VS W3 Total Cache VS WP Rocket VS WP Litespeed Cache

Environment WordPress: v4.7.3 WordPress theme: Twenty Seventeen WordPress Demo data:  Base from https://github.com/wpexplorer/total-sample-data CentOS: 7 Apache: 2.4.6 LiteSpeed Web Server: 5.1.13 Nginx: 1.10.2 PHP: 7.1 with OPcache Benchmark Introduction Command: ab -H "Accept-Encoding: gzip,deflate" -k -n 10000 -c 100 http://serverIP LiteSpeed Cache: 1.0.14.1 WP Rocket: 2.9.8.1 WP Super Cache: 1.4.9 W3 Total Cache: 0.9.5.2 Benchmark Data Didn't get a chance to … Continue reading WordPress Cache Benchmarks (AB Testing): WP Super Cache VS W3 Total Cache VS WP Rocket VS WP Litespeed Cache

How to install Nginx and PHP-FPM 7.1 on CentOS 7

Using remi repo, install Nginx and PHP-FPM and fcgi yum install -y nginx yum install -y php71-php-fpm fcgi mod_fcgid Change setting of php-fpm: nano /etc/opt/remi/php71/php-fpm.d/*.conf #------------------------------------- user = nobody group = nobody listen = 127.0.0.1:9000 #------------------------------------- Change setting of Nginx to connect to php-fpm when parse .php file nano /etc/nginx/nginx.conf #----------------------------------- user nobody; index index.php index.html; … Continue reading How to install Nginx and PHP-FPM 7.1 on CentOS 7

How to Install PHP 7 On CentOS 7

When using remi repo to install PHP7.1,  yum install php71 will NOT install our usual PHP. Remi said by default the package "php71" (Software Collection) don't install the mod_php. > yum install php71-php After this, there will be two new files: /etc/httpd/conf.d/php71-php.conf /etc/httpd/conf.modules.d/15-php71-php.conf After restart Apache, PHP will work. BTW,  package OPcache  can speed up PHP … Continue reading How to Install PHP 7 On CentOS 7