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 | |
require_once ("../app/Mage.php"); | |
$app = Mage::app('default'); | |
$config = Mage::getConfig()->getResourceConnectionConfig("default_setup"); | |
$dbinfo = array( | |
"host" => $config->host, | |
"user" => $config->username, |
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 | |
* | |
FROM | |
catalog_product_entity a | |
LEFT JOIN | |
catalog_product_entity_int ei ON ei.entity_id = a.entity_id | |
LEFT JOIN | |
catalog_category_product cp ON cp.`product_id` = a.entity_id | |
LEFT JOIN | |
catalog_product_relation cpr ON cpr.child_id = a.entity_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
time wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip |
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
@font-face { | |
font-family: 'optimaroman'; | |
src: url('https://media.wheaton.com/fonts/optima-webfont.eot'); | |
src: url('https://media.wheaton.com/fonts/optima-webfont.eot?#iefix') format('embedded-opentype'), url('https://media.wheaton.com/fonts/optima-webfont.woff2') format('woff2'), url('https://media.wheaton.com/fonts/optima-webfont.woff') format('woff'), url('https://media.wheaton.com/fonts/optima-webfont.ttf') format('truetype'); | |
font-weight: normal; | |
font-style: normal; | |
} |
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
## | |
# Customize our history | |
## | |
# Number of commands stored in current session's history | |
HISTSIZE=5000 | |
# Filesize of ~/.bash_history | |
HISTFILESIZE=10000 |
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
# Automated AMI and Snapshot Deletion | |
# | |
# @author Bobby Kozora | |
# | |
# This script will search for all instances having a tag named "Backup" with a value of "Backup". | |
# As soon as we have the instances list, we loop through each instance | |
# and reference the AMIs of that instance. We check that the latest daily backup | |
# succeeded then we store every image that's reached its DeleteOn tag's date for | |
# deletion. We then loop through the AMIs, deregister them and remove all the | |
# snapshots associated with that AMI. |
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
# Automated AMI Backups | |
# | |
# @author Bobby Kozora | |
# | |
# This script will search for all instances having a tag with the name "backup" | |
# and value "Backup" on it. As soon as we have the instances list, we loop | |
# through each instance | |
# and create an AMI of it. Also, it will look for a "Retention" tag key which | |
# will be used as a retention policy number in days. If there is no tag with | |
# that name, it will use a 7 days default value for each AMI. |
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/python | |
# | |
# This script will create an AMI for each of the instances listed in the | |
# instance_ids list. It will also clean up AMIs based on the images_to_keep | |
# variable. The cleanup logic has no concept of time so the images are just | |
# deleted based on number. It is recommended to run the script daily from | |
# cron during off peak time and by default keep 7 days. | |
# | |
import boto, boto.ec2 |
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
var dir = require('node-dir'); | |
var url = require('url'); | |
// The starting directory to recursively search in | |
var path = 'C:\\Users\\kozorar\\Development\\wheaton-us\\js'; | |
// Our regular expression to parse out URLs from the page contents | |
var urlRegex = /((http|https):\/\/(?!www\.wheaton\.com|wheaton.com)[\w\.\/\-=?#]+)/gi | |
// Our regular expression to parse out attmepts to clear the console |
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/sh | |
# FTP Server | |
HOST='server.address' | |
# FTP Username | |
USER='username' | |
# FTP Password | |
PASSWD='ftp.password' |