Skip to content

Instantly share code, notes, and snippets.

View ytorbyk's full-sized avatar

Yurii Torbyk ytorbyk

View GitHub Profile
@ytorbyk
ytorbyk / send-from-email-framework
Created December 12, 2018 08:13
Magento 2.2 Fix send-from-email-framework
@package magento/framework
Index: Mail/Template/TransportBuilderByStore.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- Mail/Template/TransportBuilderByStore.php (revision fb55bb2774fd6e2e4d4ea892372121836d7d319a)
+++ Mail/Template/TransportBuilderByStore.php (date 1544600040000)
@ytorbyk
ytorbyk / send-from-email-sales
Created December 12, 2018 08:11
Magento 2.2 Fix send-from-email-sales
@package magento/module-sales
Index: Model/Order/Email/SenderBuilder.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- Model/Order/Email/SenderBuilder.php (revision fb55bb2774fd6e2e4d4ea892372121836d7d319a)
+++ Model/Order/Email/SenderBuilder.php (date 1544600040000)
Homebrew build logs for [email protected] on macOS 10.14
Build date: 2018-09-29 17:13:38
alias my='mysql'
alias mys='mysqlshow'
alias mysu="mysql -e 'SELECT user, host FROM mysql.user'"
alias mycu='mysql-create-user'
alias mycud='mysql-create-user-and-database'
alias mycd='mysql-create-database'
alias mydd='mysql-drop-database'
alias mytd='mysql-truncate-database'
#!/usr/bin/php
<?php
# create a filename for the emlx file
date_default_timezone_set("Europe/Kiev");
list($ms, $time) = explode(' ', microtime());
$filename = dirname(__FILE__) . '/' . date('Y-m-d H.i.s.', $time) . substr($ms, 2, 3) . '.eml';
# write the email contents to the file
$email_contents = fopen('php://stdin', 'r');
@ytorbyk
ytorbyk / my.cnf
Created September 12, 2016 07:48 — forked from yvoronoy/my.cnf
MySQL Magento Config
[mysqld]
## After edit config you have to remove log files and restart mysql server
## because after changing innodb-log-file-size you should recreate ib_logfiles
## Stop MySQL server
## rm /data/dir/ib_logfile*
## Run MySQL server
##Table open cache under MacOS and MySQL 5.6 should be 250.
##Otherwise you will get error MySQL server has gone away
##table-open-cache = 250
@ytorbyk
ytorbyk / git.migrate
Last active September 14, 2015 06:39 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.