$ docker
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 | |
namespace YourNamespace\Services; | |
use Symfony\Component\Filesystem\Filesystem; | |
use Symfony\Component\Finder\Finder; | |
use \ZipArchive; | |
use \Exception; | |
class DownloadBundleService |
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 | |
/** | |
* Suppress errors generated by specified WordPress plugins. | |
* | |
* Include in the auto_prepend_file php.ini directive to ignore globally. | |
* | |
* @see http://plugins.trac.wordpress.org/browser/ostrichcize/tags/0.1/ostrichcize.php#L146 | |
* | |
* @param string $errno The error number. | |
* @param string $errstr The error message. |
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 | |
/** | |
* Has Shortcode. | |
* | |
* @package NBPL | |
* @subpackage NBPL/WordPress/Conditionals | |
* @author Jason Witt <[email protected]> | |
* @copyright Copyright ((c) 2020, Jason Witt | |
* @license GNU General Public License v2 or later | |
* @since 1.0.0 |
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
Order Today | |
==================================== | |
SELECT | |
wo.shipping_first_name as 'First Name', | |
wo.shipping_last_name as 'Last Name', | |
wo.shipping_city as 'City', | |
wo.shipping_state as 'State', | |
wo.total as 'Total' | |
FROM wp_woocommerce_orders wo | |
INNER JOIN wp_posts p on wo.order_id = p.ID |
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
SELECT p.post_title as 'Name', pm.meta_value as 'SKU', pm2.meta_value as 'Stock' | |
FROM wp_posts p | |
INNER JOIN wp_postmeta pm | |
ON p.ID = pm.post_id | |
INNER JOIN wp_postmeta pm2 | |
ON p.ID = pm2.post_id | |
AND pm.meta_key = '_sku' | |
AND ((pm2.meta_key = '_stock' AND pm2.meta_value = '0' )) |
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
SELECT p.post_title as 'Name', pm.meta_value as 'SKU', pm2.meta_value as 'Stock' | |
FROM wp_posts p | |
INNER JOIN wp_postmeta pm | |
ON p.ID = pm.post_id | |
INNER JOIN wp_postmeta pm2 | |
ON p.ID = pm2.post_id | |
AND pm.meta_key = '_sku' | |
AND ((pm2.meta_key = '_stock' AND CAST(pm2.meta_value AS SIGNED) BETWEEN '1' AND '4' )) |
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
set $remote_server https://www.domain.com/; | |
location ~ ^/wp-content/uploads/(.*) { | |
rewrite ^/wp-content/uploads/(.*)$ $remote_server/wp-content/uploads/$1 permanent; | |
} |
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
rsync -rP --rsh='ssh -p Port' usename@domain:~/remote-directory/ /local-directory | |
rsync -rP --rsh='ssh -p Port' /local-directory usename@domain:~/remote-directory/ |
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
RewriteEngine on | |
ReWriteCond %{SERVER_PORT} !^443$ | |
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L] |
NewerOlder