This file contains hidden or 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
SELECT | |
firstname, | |
lastname, | |
email, | |
username, | |
au2.role_name | |
FROM admin_user | |
INNER JOIN admin_role au1 | |
ON admin_user.user_id = au1.user_id | |
INNER JOIN admin_role au2 |
This file contains hidden or 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
# generated by Chef for node localhost | |
# | |
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with |
This file contains hidden or 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 | |
# Patch apllying tool template | |
# v0.1.2 | |
# (c) Copyright 2013. Magento Inc. | |
# | |
# DO NOT CHANGE ANY LINE IN THIS FILE. | |
# 1. Check required system tools | |
_check_installed_tools() { | |
local missed="" |
This file contains hidden or 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 | |
# Patch apllying tool template | |
# v0.1.2 | |
# (c) Copyright 2013. Magento Inc. | |
# | |
# DO NOT CHANGE ANY LINE IN THIS FILE. | |
# 1. Check required system tools | |
_check_installed_tools() { | |
local missed="" |
This file contains hidden or 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 -r 'require_once("app/Mage.php"); Mage::app(); $id = Mage::getModel("cms/page")->load(Mage::getStoreConfig("web/default/cms_home_page"))->getId(); Enterprise_PageCache_Model_Cache::getCacheInstance()->clean("CMS_PAGE_" . $id);' |
This file contains hidden or 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
- Break large features up into multiple commits | |
- Don't submit a massive PR | |
- Link to PRs where code has previously been reviewed | |
- Write good commit messages | |
- Make sure the site isn't broken in any of your commits | |
- Avoid reformatting | |
- Write a good comment when submitting your PR | |
- Include screenshots for significant front end changes | |
- Don't Involve Multiple Reviewers | |
- Don't Submit Net New Code After Changes Have Been Requested On A Reviewed PR |
This file contains hidden or 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 php | |
<?php | |
$projectName = basename(getcwd()); | |
exec('vendor/bin/phpunit', $output, $returnCode); | |
if ($returnCode !== 0) { | |
$minimalTestSummary = array_pop($output); | |
printf("Test suite for %s failed: ", $projectName); | |
printf("( %s ) %s%2\$s", $minimalTestSummary, PHP_EOL); | |
printf("ABORTING COMMIT!\n"); |
This file contains hidden or 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 | |
class Analyzer | |
{ | |
const MAX_TO_CHECK = 1000; | |
protected $dirs; | |
protected $emojis; | |
public function __construct() |
This file contains hidden or 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 Scenario extends Simulation { | |
val httpProtocol = http | |
.baseURL("https://example.com") | |
.inferHtmlResources(BlackList(""".*media.*""", """.*\.js""", """.*\.css""", """.*\.gif""", """.*\.jpeg""", """.*\.jpg""", """.*\.ico""", """.*\.woff""", """.*\.(t|o)tf""", """.*\.png"""), WhiteList(""".*example.com.*""")) | |
val headers = Map("Upgrade-Insecure-Requests" -> "1") | |
///////////////////// | |
// BouncerHome | |
///////////////////// |
This file contains hidden or 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
<!-- Before --> | |
<cache> | |
<requests> | |
<catalog> | |
<category> | |
<view>enterprise_pagecache/processor_category</view> | |
</category> | |
</catalog> | |
</requests> | |
</cache> |