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
-- | |
-- RECALL ACTION QUERY | |
-- | |
-- Return a list of customers, | |
-- both logged in and not, | |
-- that purchased product X, | |
-- between dates Y and Z, | |
-- with an order status that indicates their payment was received. | |
SET @date_from = '2020-01-01'; | |
SET @date_to = '2020-02-01'; |
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
#!/usr/bin/env bash | |
# Download all media from the production server, except for cached files. | |
# SET VARIABLES HERE | |
# 1. SSH connection | |
SSH_PRIVATE_KEY="~/.ssh/YOURPRIVATEKEY" | |
SSH_PORT=22 | |
SSH_USER="YOURUSER" | |
SSH_HOST="YOURSERVER.COM" |
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 | |
/** | |
* Dump helper. Functions to dump variables to the screen, in a nicley formatted manner. | |
* @author Joost van Veen | |
* @version 1.0 | |
*/ | |
if (!function_exists('dump')) { | |
function dump ($var, $label = 'Dump', $echo = TRUE) | |
{ | |
// Store dump in variable |
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 | |
/** | |
* Use this class to automatically generate files for Codeigniter. | |
* This is to be used specifically with the file setup such as used | |
* in the course Building a CMS with Codeigniter on tutsplus.com. | |
* | |
* Just place this in your appllication/controllers folder and run it. | |
* NOTE: the ENVIRONMENT constant has to be set to 'development' or the | |
* class will return a 404. | |
* |