Skip to content

Instantly share code, notes, and snippets.

View barledge's full-sized avatar

Ben Arledge barledge

View GitHub Profile
@barledge
barledge / tickets-plus-disable-tax.php
Created April 7, 2021 21:45 — forked from jesseeproductions/tickets-plus-disable-tax.php
Event Tickets Plus - Disable Taxes for Ticket Products
/**
* Event Tickets Plus - Disable Taxes for Ticket Products
*/
add_action( 'wootickets_after_save_ticket', 'tribe_disable_taxes_ticket_product' );
function tribe_disable_taxes_ticket_product( $ticket_id ) {
update_post_meta( $ticket_id, '_tax_status', 'none' );
update_post_meta( $ticket_id, '_tax_class', 'zero-rate' );
}
# Elastic Beanstalk Managed
# Elastic Beanstalk managed configuration file
# Some configuration of nginx can be by placing files in /etc/nginx/conf.d
# using Configuration Files.
# http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/customize-containers.html
#
# Modifications of nginx.conf can be performed using container_commands to modify the staged version
# located in /tmp/deployment/config/etc#nginx#nginx.conf
@barledge
barledge / amazon-ec2-ftp.md
Created June 5, 2019 17:14 — forked from gunjanpatel/amazon-ec2-ftp.md
amazon ec2 LAMP and FTP installation and setup
#
sudo su -
cd /usr/local/bin
mkdir ffmpeg
cd ffmpeg
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
tar xvf ffmpeg-release-64bit-static.tar.xz
@barledge
barledge / Javascript - Simple email validation
Created September 30, 2018 23:54 — forked from dreamstarter/Javascript - Simple email validation
Javascript - Use a regex to check the email address input.
function checkEmail(email) {
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
if (!reg.test(email)) return false;
return true;
}
1. Highlight a recommended option,

2. Allow users to switch currency (€/$/£)

3. Allow users to switch pricing monthly/yearly

4. Keep the entire pricing plan area clickable

5. Use slider to calculate how much a user would save

6. Provide free first month for good engagement

7. Prominently highlight testimonials prominently

8. Repeating call to action on top and bottom

9. Sell benefits instead of features

10. Indicate that users can cancel any time

@barledge
barledge / seo-scraper.js
Created April 14, 2017 22:18
SEO Site Crawler
/**
* @author Eric Tucker <[email protected]>
* Written for nodejs
* requires phantomjs and nightmarejs
*
* Accessible through command line as:
* node seo-scraper.js www.YOUR-WEBSITE.com
*
*/
@barledge
barledge / muraHTACCESSFile
Created May 12, 2016 19:34 — forked from stevewithington/muraHTACCESSFile
Mura CMS .htaccess & web.config file. This shows an example of how to include SiteIDs for specific sites, and allow for some sites to not have the SiteID in the URL.
# Also refer to https://gist.github.com/stevewithington/5060602 if you wish to allow for mixed siteIDs in URLs
# Apache mod_rewrite Docs: http://httpd.apache.org/docs/current/rewrite/
# Intro: http://httpd.apache.org/docs/current/rewrite/intro.html
# Flags: http://httpd.apache.org/docs/current/rewrite/flags.html
Options All -Indexes
Options +FollowSymLinks
# -------------------------------------------------------------------------------
# MURA REWRITE OPTIONS