pecl channel-update pecl.php.net
pecl clear-cache
pecl install xdebug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Ubuntu Server | |
export DEBIAN_FRONTEND=noninteractive | |
echo -e "\e[96m Adding PPA \e[39m" | |
sudo add-apt-repository -y ppa:ondrej/apache2 |
npm v3.10 - ◾
npm install -g npm
# Downgrade to a specific version
npm install -g npm@6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source internet | |
# Use at your own risk, test on localhost first | |
# Ovrride Default index.php | |
DirectoryIndex home.php | |
# Prevent access to some files | |
<FilesMatch "^(wp-config.php|readme.html|license.txt|README.md|.gitignore|.gitattributes|.htaccess|error_log)"> | |
Order allow,deny | |
Deny from all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install node and npm via nvm - https://github.com/nvm-sh/nvm | |
# Run this script like - bash script-name.sh | |
# Define versions | |
INSTALL_NODE_VER=22 | |
INSTALL_NVM_VER=0.40.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This to be used when you need to implement SSL | |
# Make sure that apache mod_ssl is on | |
# You can generate self signed certificates for development | |
# http://www.selfsignedcertificate.com/ | |
<VirtualHost *:443> | |
ServerName yourapp.test | |
#ServerAlias www.yourapp.test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Power WP Tweaks | |
Plugin URI: http://ankurk91.github.io/ | |
Description: Some common tweaks to optimize WP Site | |
Version: 1.0 | |
Author: ankurk91 | |
Author URI: http://ankurk91.github.io/ | |
License: MIT | |
*/ |
NewerOlder