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 | |
// For reuse, just look inside get_mapped_value() that's where all the specific data handling is, which is what you will need to change | |
// To understand, how this works, head to run() | |
// ini_set( 'memory_limit', '2000M' ); | |
class Recharge_Compliant_CSV_From_SubscribePro_Export { | |
private $source_csv_filename; |
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
// define options for Pace - ajax progress showing library | |
paceOptions = { | |
restartOnRequestAfter: 50, // make it work for short AJAX requests only (ajax requests taking longer than 50ms will trigger it) | |
ajax: { | |
trackMethods: [ 'GET', 'POST', 'DELETE', 'PUT', 'PATCH' ] | |
} | |
}; |
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 | |
# By Ashfame | |
while true | |
do | |
# keep checking for idle dropbox status | |
STATUS=`dropbox status` | |
if [ $STATUS = 'Idle' ]; then | |
notify-send "System Shutdown" "System will power off now" |
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 | |
declare -a regions=( | |
us-east-2 #US East (Ohio) | |
us-east-1 #US East (N. Virginia) | |
us-west-1 #US West (N. California) | |
us-west-2 #US West (Oregon) | |
ap-northeast-1 #Asia Pacific (Tokyo) | |
ap-northeast-2 #Asia Pacific (Seoul) | |
ap-south-1 #Asia Pacific (Mumbai) |
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
# To be safe, make a backup of your existing ssl config file, before making any changes in it | |
# Test your SSL config by "nginx -t". You might need to use "sudo nginx -t". | |
# Once config is validated to be good, reload nginx by "sudo service nginx reload". | |
# Following config file was tested on nginx/1.10.3 | |
server { | |
listen 443 ssl; | |
server_name yoursite.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
<!--Begin CTCT Sign-Up Form--> | |
<!-- EFD 1.0.0 [Mon Aug 28 11:09:22 EDT 2017] --> | |
<div class="ctct-embed-signup"> | |
<div> | |
<span id="success_message" style="display:none;"> | |
<div style="text-align:center;"> | |
<h3 class="article--title"> | |
Thank you for taking the next step in healing your arthritis. You should receive your video in your email shortly. | |
</h3> |
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
(function($){ | |
// Regular jQuery code inside | |
$(document).ready(function(){ | |
}); | |
})(jQuery); |
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 | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root 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
<?xml version="1.0" encoding="UTF-8"?> | |
<config> | |
<modules> | |
<Anattadesign_Adminoverrider> | |
<version>1.0.0</version> | |
</Anattadesign_Adminoverrider> | |
</modules> | |
<global> | |
<layout> | |
<adminhtml_sales_order_create_index> |
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
$email = 'ashfame@example.com'; | |
$subject = 'Custom stuff email'; | |
$email_heading = 'Custom Heading'; | |
$email_content = ''; // whatever it is | |
ob_start(); | |
do_action( 'woocommerce_email_header', $email_heading ); | |
echo $email_content; // or simply have HTML markup outside PHP tags here |