$ sudo apt update
$ sudo apt install nginx
Check firewall :
| <?php | |
| /** | |
| * Plugin Name: Activate required plugins. | |
| * Description: Programmatically install and activate plugins based on a runtime config. | |
| * Version: 1.0 | |
| * Author: Hans Schuijff | |
| * Author URI: http://dewitteprins.nl | |
| * License: MIT | |
| * License URI: http://www.opensource.org/licenses/mit-license.php | |
| */ |
| <?php | |
| /* | |
| * Exclude & Include in group control | |
| */ | |
| $this->add_group_control( | |
| Group_Control_Background::get_type(), | |
| [ | |
| 'name' => 'item_background', | |
| 'label' => __( 'Background', 'happy-addons-pro' ), | |
| 'types' => [ 'classic', 'gradient' ], |
| # Rename from 'C:/Users/Repos/phishfoodvr/.git/refs/remotes/origin/CHA/main.lock' to 'C:/Users/Repos/phishfoodvr/.git/refs/remotes/origin/CHA/main' failed. Should I try again? (y/n) n | |
| # error: update_ref failed for ref 'refs/remotes/origin/CHA/main': couldn't set 'refs/remotes/origin/CHA/main' | |
| $ cd $(git rev-parse --show-toplevel) # if necessary | |
| $ rm -rf .git/refs/remotes/origin # remove all origin/* | |
| $ mkdir .git/refs/remotes/origin # create empty origin/ | |
| $ git fetch origin # repopulate origin/* |
| <?php | |
| namespace ElementorControls; | |
| if (!defined('ABSPATH')) exit; // Exit if accessed directly | |
| class Elementor_Custom_Controls { | |
| public function includes() { | |
| require_once(plugin_dir_path(__FILE__).'inc/elementor/image-selector-control.php'); | |
| } |
| // Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
| $ git ls-files | xargs wc -l |