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
use Aws\Sns\SnsClient; | |
$sns = \Aws\Sns\SnsClient::factory(array( | |
'credentials' => [ | |
'key' => '<access_key>', | |
'secret' => '<access_secret>', | |
], | |
'region' => '<region>', | |
'version' => 'latest', | |
)); |
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 | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
# Variables | |
USER="root" | |
PASSWORD="" | |
OUTPUT="/home/ubuntu/backups" | |
WWW="/var/www/*" | |
BUCKET="Backup-Bucket" |
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 | |
/* Copy file | |
* app\code\core\Mage\Catalog\Block\Product\List.php | |
* to | |
* app\code\local\Mage\Catalog\Block\Product\List.php | |
*/ | |
/* Replace */ | |
$this->_productCollection = $layer->getProductCollection()->addAttributeToSort($_GET['order'], $_GET['dir']); |
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
(function (root, factory) { | |
// Set up DT_bootstrap appropriately for the environment. | |
if (typeof define === 'function' && define.amd) { | |
// AMD | |
define(['jquery', 'dataTables'], function ($) { | |
factory($); | |
}); | |
} else { | |
// Browser globals | |
factory(root.jQuery); |