This file contains hidden or 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
composer require magento/product-community-edition 2.1.5 --no-update | |
composer update | |
rm -rf var/di var/generation | |
php bin/magento cache:clean | |
php bin/magento cache:flush | |
php bin/magento setup:upgrade | |
php bin/magento setup:di:compile | |
php bin/magento indexer:reindex | |
php bin/magento --version |
This file contains hidden or 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 | |
// Input: | |
// <img src="..."> | |
// Output: | |
// <a href="../wp-content/uploads/2016/09/2016-012_0005.jpg" data-lightbox="roadtrip"> | |
// <img src=".../wp-content/uploads/2016/09/2016-012_0005-150x150.jpg" alt="2016-012_0005" width="150" height="150" class="custom-class alignleft size-thumbnail wp-image-1048"> | |
// </a> | |
This file contains hidden or 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 | |
$data = [ | |
'email' => $_POST['email'], | |
'status' => 'subscribed', | |
'firstname' => $_POST['name'], | |
]; | |
// accesses key and list | |
$apiKey = '11111111111111111111111111111111-1234'; | |
$listId = '1234567890'; |
This file contains hidden or 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 | |
// File Upload Resume | |
$data = "file/Candidate/".$candidate->changedEntityId."/raw?externalID=UserHeadshot&fileType=CV&type=CV&BhRestToken=".$token; | |
$fileName = $_FILES['file']['name']; | |
$filePath = $_FILES['file']['tmp_name']; | |
$post = file_get_contents(''.$filePath.''); | |
$eol = "\r\n"; | |
$separator = ''.md5(microtime()).''; |
This file contains hidden or 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
cd intl | |
phpize | |
./configure --enable-intl | |
make | |
sudo make install | |
# in php.ini uncomment extension=php_intl.dll and replaced by extension=intl.so |
This file contains hidden or 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
# Protect Folders | |
find wp-content -type d -exec chmod 555 {} + | |
# Protect Files | |
find wp-content -type f -exec chmod 444 {} + | |
# Allow write only in needed folder | |
find wp-content/uploads -type d -exec chmod 755 {} + | |
find wp-content/uploads -type f -exec chmod 644 {} + | |
This file contains hidden or 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 | |
# PHP 7 Initial Compile (Install php7 Linux (Mint/Ubuntu) LAMP) ## | |
# Author: Roman Barbotkin | |
# Fixed error and simplified, I tested for Linux Mint 7.3. | |
# Install: just run this file, it will do everything for you :) | |
# If make error uncoments 2 line. | |
#sudo apt-get purge make | |
#sudo apt-get install make |