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
# CONTRACT | |
# SOURCE_SUBPRPOJECT_ROOT points to the "same" directory tree | |
# as TARGET_PROJECT_ROOT. We're extracting the directory tree | |
# at SOURCE_SUBPROJECT_ROOT into TARGET_PROJECT_ROOT. | |
# | |
# There must be a single, linear history in the SOURCE repository. | |
# Graft the current commit into the target | |
pushd "$SOURCE_SUBPROJECT_ROOT" | |
commit_comment="$(git log -1 --pretty=%B)" |
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
class PatchDownloader | |
{ | |
/** | |
* @var string | |
*/ | |
private $infoUrl = "https://MAGEID:[email protected]/products/downloads/info/filter/version/"; | |
/** | |
* @var string | |
*/ | |
private $downloadUrl = "https://MAGEID:[email protected]/products/downloads/file/"; |
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
1) First you need to generate download token. Login to your account on magento.com and generate it in Account Settings->Downloads Access Token | |
2) You will need your MAGEID as well. It is shown at the top-left in your account page. | |
3) curl -k https://MAGEID:[email protected]/products/downloads/info/help | |
4) Profit! |
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
xdebug.file_link_format="javascript:var rq = new XMLHttpRequest(); rq.open(\"GET\", \"http://localhost:8091?message=%f:%l\", true); rq.send(null);" |
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
delimiter ;; | |
drop procedure if exists build_catalog;; | |
create procedure build_catalog(IN categories INT, IN products INT) | |
begin | |
SET @category_count = 1; | |
SET @CATNAMEPREFIX = "Category "; | |
SET @CATURLKEYPREFIX = "cat-"; | |
SET @CATURLPATHPREFIX = "catpath-"; | |
SET @ROOTCATEGORY = 2; | |
SET @INCLUDEINMENU = 1; |
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 | |
for file in `find .` | |
do | |
EXTENSION="${file##*.}" | |
if [ "$EXTENSION" == "php" ] || [ "$EXTENSION" == "phtml" ] | |
then | |
RESULTS=`php -l $file` |