Skip to content

Instantly share code, notes, and snippets.

View benpearson2003's full-sized avatar

Benjamin Pearson benpearson2003

  • Cacophony Media Group
  • Little Rock, AR
View GitHub Profile
<?php
/**
* User: bpearson
* Date: 3/2/15
* Time: 9:12 AM
*/
require_once 'abstract.php';
class Reset_Stock_Indexes extends Mage_Shell_Abstract
.grid { margin:1em auto; border-collapse:collapse }
.grid td {
cursor:pointer;
width:30px; height:30px;
border:1px solid #ccc;
text-align:center;
font-family:sans-serif; font-size:13px
}
.grid td.clicked {
background-color:yellow;
@benpearson2003
benpearson2003 / automated-snapshots
Last active December 2, 2018 22:15
Setting Up Automated Snapshots
Install AWS CLI if missing.
http://docs.aws.amazon.com/cli/latest/userguide/installing.html
Configure AWS CLI
http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
>> Roadblock: Missing keys: Ask [designated AWS admin] to give you keys.
>> Error: Region: Confirm your server's region.
Install EC2 API Tools if missing
https://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/set-up-ec2-cli-linux.html
>> Roadblock: Permission denied: Ask [designated AWS admin] to fix it.
@benpearson2003
benpearson2003 / describe-regions-debug
Last active August 29, 2015 14:14
aws ecs describe-regions --debug
$ aws ec2 describe-regions --debug
2015-01-26 20:34:14,463 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.7.3 Python/2.7.3 Linux/3.2.0-36-virtual, botocore version: 0.84.0
2015-01-26 20:34:14,463 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x30ec6e0>
2015-01-26 20:34:14,464 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider at 0x30779b0>
2015-01-26 20:34:14,465 - MainThread - botocore.service - DEBUG - Creating service object for: ec2
2015-01-26 20:34:14,575 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.ec2: calling handler <function register_retries_for_service at 0x2c52cf8>
2015-01-26 20:34:14,579 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: ec2
2015-01-26 20:34:14,580 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.ec2: calling handler <function signature_overrides at 0x2c52