Using Homebrew install mailhog
and enable the service as instructed in the installation.
Open in any browser http://localhost:8025
Edit file /etc/postfix/main.cf
sudo vim /etc/postfix/main.cf
<?php | |
/** | |
* @author Atanas Vasilev | |
* @link http://pastebin.com/dHbqjUNy | |
* @see http://www.dotvoid.com/2010/04/detecting-utf-bom-byte-order-mark/ | |
* @version 1.1 | |
*/ | |
// SETTINGS |
<?php | |
preg_match_all("/^((?:\h*>+\h*)*)(.*)$/m", $s, $matches, PREG_SET_ORDER); | |
$indent = 0; | |
$s = ''; | |
foreach ($matches as $match) { | |
$newIndent = substr_count($match[1], '>'); | |
$diff = $newIndent - $indent; | |
/* |
<?php | |
/** | |
* Recursively takes the specified criteria and adds too the expression. | |
* | |
* The criteria is defined in an array notation where each item in the list | |
* represents a comparison <fieldName, operator, value>. The operator maps to | |
* comparison methods located in ExpressionBuilder. The key in the array can | |
* be used to identify grouping of comparisons. | |
* |
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
# Add the following to your shell init to set up gpg-agent automatically for every shell | |
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
source ~/.gnupg/.gpg-agent-info | |
export GPG_AGENT_INFO | |
else |
Using Homebrew install mailhog
and enable the service as instructed in the installation.
Open in any browser http://localhost:8025
Edit file /etc/postfix/main.cf
sudo vim /etc/postfix/main.cf
<?php | |
declare(strict_types=1); | |
namespace App\ORM\Hydration; | |
use Doctrine\ORM\Internal\Hydration\ArrayHydrator; | |
/** | |
* Returns one-dimensional scalar array from query: mixed[][] => mixed[] |
This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x
The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/
#!/bin/bash | |
# Creator: Phil Cook | |
# Modified: Andy Miller | |
# | |
# >>> IMPORTANT: Moved to: https://github.com/rhukster/sphp.sh | |
# >>> Kept here for legacy purposes | |
# | |
osx_major_version=$(sw_vers -productVersion | cut -d. -f1) | |
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2) | |
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3) |