Skip to content

Instantly share code, notes, and snippets.

View bneff84's full-sized avatar

Brian Neff bneff84

View GitHub Profile
@viktorpetryk
viktorpetryk / mailhog-install.md
Last active January 27, 2023 09:08
MailHog installation on Ubuntu

Install & Configure MailHog

  1. Download and make it executable
wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64
sudo cp MailHog_linux_amd64 /usr/local/bin/mailhog
sudo chmod +x /usr/local/bin/mailhog
  1. Make MailHog as a service
@krasnuydyx
krasnuydyx / sync.sh
Last active December 29, 2020 13:50
Environment sync (Magento Cloud)
#!/usr/bin/env bash
PROD_ENV="ent-tx3iahfl3v2uk-production-vohbr3y@ssh.us-3.magento.cloud"
STAGE_ENV="ent-tx3iahfl3v2uk-staging-5em2ouy@ssh.us-3.magento.cloud"
INT_ENV="tx3iahfl3v2uk-integration-5ojmyuq--mymagento@ssh.us-3.magento.cloud"
TIMEFORMAT=%R
db_data_reg="cat app/etc/env.php | grep -A 10 \"'db'\""
try() {
"$@" || { echo "command failed, with exit code $?"; exit 1; }
@cowlby
cowlby / generate.php
Created December 3, 2013 20:02
This script can be used for generating PHP model for PDT. It builds PHP functions according to the loaded extensions in running PHP, using complementary information gathered from PHP.net documentation.
<?php
/**
* This script can be used for generating PHP model for PDT.
* It builds PHP functions according to the loaded extensions in running PHP,
* using complementary information gathered from PHP.net documentation
*
* @author Michael Spector <michael@zend.com>
*/
if (version_compare(phpversion(), "5.0.0") < 0) {