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
<IfModule php5_module> | |
AddType application/x-httpd-php .php | |
AddType application/x-httpd-php-source .phps | |
<IfModule dir_module> | |
DirectoryIndex x index.html index.php index.cfm | |
</IfModule> | |
</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
[alias] | |
co = checkout | |
st = status | |
ci = commit | |
br = branch | |
df = diff | |
lg = log -p | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
ls = ls-files |
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
Tory Burch Abitha Flip Flops These leather <a style=""text-decoration:none;"" href=""/tory-burch-shoes-sandals-all/br/v=1/2534374302075716.htm"">Tory Burch sandals</a> |
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
> db.products.findOne({sourceid: 'INDAH40160'}) | |
{ | |
"_id" : ObjectId("52f3d868b4932d0fc100218b"), | |
"brandname" : "Indah", | |
"categories" : [ | |
"Apparel", | |
"Womens", | |
"Dresses", | |
"Day" | |
], |
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
$ids = Mage::getModel('catalog/product') | |
->getCollection() | |
->addAttributeToSelect('entity_id') | |
->addFieldToFilter('status', array('eq'=>'1')) | |
->addFieldToFilter('type_id', array('in'=>array('configurable', 'simple'))) | |
->getAllIds(); |
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 _git_branch_name | |
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') | |
end | |
function _is_git_dirty | |
echo (git status -s --ignore-submodules=dirty ^/dev/null) | |
end | |
function _unpushed |
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
// instead of the following: | |
// db variables | |
$dsn = 'the dsn hard coded'; | |
$username = 'username hard coded'; | |
$password = 'password hard coded'; | |
// try to connect to the db | |
try { | |
$db = new PDO($dsn, $username, $password); |
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
$j(document).ready(function () { | |
// enable strict mode | |
'use strict'; | |
// hide the site newsletter modal | |
$j('.signup-form').hide(); | |
var check_url = 'http://' + host + '/skin/frontend/enterprise/rebeccaminkoff/inc/sanity-check.php'; | |
var save_url = 'http://' + host + '/skin/frontend/enterprise/rebeccaminkoff/inc/store-address.php'; | |
function get_newsletter_signup_data(){ |
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
#!/bin/bash | |
echo "////////////////////////// START ////////////////////////////" | |
date | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
day=$(date +%A) | |
user=$2 | |
host=$1 | |
database=$3 |
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
#!/bin/bash | |
echo "////////////////////////// MAGENTO TAR ////////////////////////////" | |
date | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
excludefilename="$DIR/exclude_files.txt" | |
day=$(date +%A) | |
path=$1 |