Skip to content

Instantly share code, notes, and snippets.

View kalenjohnson's full-sized avatar

Kalen Johnson kalenjohnson

View GitHub Profile
@QWp6t
QWp6t / acf-post-type-supports.php
Last active October 14, 2018 17:15
Adds ACF Field Group location rule for Post Type Support.
<?php
/**
* Plugin Name: Field Group Location: Post Type Supports
* Plugin URI: http://qwp6t.me/acf-post-type-supports
* Description: Adds ACF Field Group location rule for Post Type Support. NOTE: You must first declare the supported feature in your theme.
* Version: 1.0.0
* Author: QWp6t
* Author URI: http://qwp6t.me
* License: MIT License
*/
@v-jacob
v-jacob / Mailhog Bash Script (upstart)
Last active December 5, 2018 12:22
Mailhog Bash Script
#!/usr/bin/env bash
echo ">>> Installing Mailhog"
# Download binary from github
wget --quiet -O ~/mailhog https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64
# Make it executable
chmod +x ~/mailhog
@iCodeForBananas
iCodeForBananas / CatalogTeset.php
Created December 17, 2014 18:02
example phpunit test with self signed ssl certificate
<?php
use Goutte\Client;
class CatalogSignupTest extends PHPUnit_Framework_TestCase
{
public function test_successful_catalog_purchase_where_shipping_and_billing_are_the_same_in_washington()
{
$email = 'rick' . mt_rand() . '@example.com';