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 GuzzleHttp\Client; | |
trait MailTestHelper | |
{ | |
/** | |
* @var \GuzzleHttp\Client | |
*/ | |
protected $mailService; |
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 | |
# Adds reference to GitHub issue if available in branch name. | |
# The issue number should be at the end of the branch name, following | |
# a hyphen. | |
# Only proceed if no second parameter is given to the script. | |
if [ x = x${2} ]; then | |
branch=$(git symbolic-ref --short HEAD) | |
if [[ $branch =~ ^([^/]+)/([A-Z]+\-[0-9]+) ]]; then |
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 python | |
# post-receive hook for git-based deployments | |
import sys | |
import os | |
from subprocess import call | |
# configuration | |
deploy_to_path = os.path.realpath('./deploy_dir') | |
deploy_branch = 'master' |
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 | |
set -eo pipefail | |
cert_file="$1" | |
if [ -z "$cert_file" ]; then | |
echo "Usage: create-startssl-cert-bundle CERTIFICATE_FILE" >&2 | |
echo >&2 | |
echo "Bundles StartSSL's intermediate certs and writes combined certificate to stdout" >&2 | |
exit 1 |