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 | |
| target_branch="production" | |
| working_tree="PATH_TO_DEPLOY" | |
| while read oldrev newrev refname | |
| do | |
| branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
| if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then | |
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
| require ('../../wp-blog-header.php'); | |
| require ('../../wp-content/plugins/wishlist-member/core/api-helper/class-api-methods.php'); | |
| $user_ID = get_current_user_id(); | |
| // replace level id | |
| $check = wlmapi_is_user_a_member(**LEVEL_ID**, $user_ID); | |
| if ( $check ) { | |
| #echo 'User is a member'; | |
| header('Location: ***'); | |
| } else { | |
| #echo 'User is not a member'; |
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
| <script type="text/javascript" language="Javascript" src="/wp-content/themes/writeadultfiction/js/mailcheck.min.js"></script> | |
| <script type="text/javascript"> | |
| jQuery(document).ready(function($){ | |
| var domains = ["yahoo.com", "google.com", "hotmail.com", "gmail.com", "me.com", "aol.com", "mac.com", | |
| "live.com", "comcast.net", "googlemail.com", "msn.com", "hotmail.co.uk", "yahoo.co.uk", | |
| "facebook.com", "verizon.net", "mail.com", "outlook.com"]; | |
| var topLevelDomains = ["co.uk", "com", "net", "org", "info", "edu", "gov", "mil"]; |
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
| var MailParser = require('mailparser').MailParser; | |
| var Mbox = require('./src/mbox'); | |
| var mbox = new Mbox(); | |
| var fs = require('fs'); | |
| // wait for message events | |
| mbox.on('message', function(msg) { | |
| // parse message using MailParser | |
| mailparser = new MailParser(); |
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 | |
| /** | |
| * This file can be used to validate that the WordPress wp_mail() function is working. | |
| * To use, change the email address in $to below, save, and upload to your WP root. | |
| * Then browse to the file in your browser. | |
| * | |
| * For full discussion and instructions, see the associated post here: | |
| * http://b.utler.co/9L | |
| * | |
| * Author: Chad Butler |
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
| const https = require('https'); | |
| const url = require('url'); | |
| // to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration | |
| const slack_url = 'https://hooks.slack.com/services/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'; | |
| const slack_req_opts = url.parse(slack_url); | |
| slack_req_opts.method = 'POST'; | |
| exports.handler = function(event, context) { | |
| (event.Records || []).forEach(function (rec) { |
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
| <style type="text/css"> | |
| .breadcrumb li { | |
| display: inline; | |
| } | |
| .breadcrumb li+li:before { | |
| content:"» "; | |
| } | |
| </style> | |
| <ol class="breadcrumb"> |