Scaling Magento presentation with 60 slides and notes, which was then reviewed by Alan Storm.
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
# Canonical https/www | |
<IfModule mod_rewrite.c> | |
RewriteCond %{HTTPS} off [OR] | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteCond %{HTTP_HOST} ^(.*)$ [NC] | |
RewriteRule (.*) https://www.%1/$1 [R=301,L] | |
</IfModule> |
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
Function MyConcat(ConcatArea As Range) As String | |
For Each x In ConcatArea: xx = IIf(x = "", xx & "", xx & x & "|"): Next | |
MyConcat = Left(xx, Len(xx) - 1) | |
End Function | |
// ALT +F11 |
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
find . -type f \-exec chmod 644 {} \; | |
find . -type d \-exec chmod 711 {} \; | |
find media/ -type d \-exec chmod 755 {} \; | |
find var/ -type d \-exec chmod 755 {} \; | |
find media -type f \-exec chmod 664 {} \; | |
find var -type f \-exec chmod 664 {} \; | |
from: https://blog.nexcess.net/2010/12/06/securing-magento-file-directory-permissions/ |
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
$input = array_map("unserialize", array_unique(array_map("serialize", $input))); |
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
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
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
<?php namespace LarryWeya\FormbuilderToJSONSchema\FormbuilderToJSONSchema; | |
class FormbuilderParser { | |
/** | |
* @var array the formbuilder schema we are working with | |
*/ | |
protected $schema; | |
/** |
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
/* | |
* jQuery Nivo Slider v2.6 | |
* http://nivo.dev7studios.com | |
* | |
* Copyright 2011, Gilbert Pellegrom | |
* Free to use and abuse under the MIT license. | |
* http://www.opensource.org/licenses/mit-license.php | |
* | |
* | |
* 100% width + background color cycle + transparent image by Tony H. Meyer |
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
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.1.min.js"><\/script>')</script> |
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
// search duplicates | |
SELECT field, field_1, count(*) | |
FROM table | |
GROUP BY field, field_1 HAVING count(*) > 1; | |
//remove duplicates | |
ALTER IGNORE TABLE `sometable` ADD UNIQUE INDEX(field,field_1); |
NewerOlder