Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0"?>
<config>
<modules>
<AW_Relatedproducts>
<version>1.4.1</version><platform>ce</platform>
</AW_Relatedproducts>
</modules>
<global>
<blocks>
<relatedproducts>
<?php
$installer = $this;
$installer->startSetup();
$installer->getConnection()
->addColumn($installer->getTable('sales/quote'), 'ready_date', 'varchar(50)');
$installer->getConnection()
->addColumn($installer->getTable('sales/quote'), 'ready_time', 'varchar(50)');
$installer->getConnection()
->addColumn($installer->getTable('sales/order'), 'delivery_datetime', 'int(20)');
$installer->endSetup();
Options All -Indexes
<IfModule mod_php5.c>
php_flag engine 0
</IfModule>
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI
<IfModule mod_rewrite.c>
@ryaan-anthony
ryaan-anthony / imgmv.sh
Last active December 25, 2015 19:09
1. Put this script in your /shell/ directory (from within magento root).2. Running the script will move all images to their respective directories, will create directories that do not exists.example:original: /media/catalog/product/ABC.jpg gets moved to: /media/catalog/product/A/B/ABC.jpg
#!/bin/bash
cd ~/public_html/media/catalog/product
find . -maxdepth 1 -type f $1 | while read x; do
filename=$(basename "$x")
first=${filename:0:1};
second=${filename:1:1};
mkdir -p "$first/$second";
mv -f "$x" "$first/$second/$filename";
done
(function(b){b.fn.equalHeightColumns=function(a){var c,d,a=b.extend({},b.equalHeightColumns.defaults,a);c=a.height;d=b(this);b(this).each(function(){a.children&&(d=b(this).children(a.children));a.height||(a.children?d.each(function(){b(this).height()>c&&(c=b(this).height())}):b(this).height()>c&&(c=b(this).height()))});a.minHeight&&c<a.minHeight&&(c=a.minHeight);a.maxHeight&&c>a.maxHeight&&(c=a.maxHeight);d.animate({height:c},a.speed);return b(this)};b.equalHeightColumns={version:1,defaults:{children:!1, height:0,minHeight:0,maxHeight:0,speed:0}}})(jQuery);
// example use:
// $('.sub-menu > li').equalHeightColumns();
<?xml version="1.0" encoding="UTF-8"?>
<layout>
<default>
<reference name="header">
<block type="global/template_links" name="courtesy.links" as="courtesyLinks">
<action method="setClassName"><class_name>courtesy</class_name></action>
<action method="addLink" translate="label title">
<label>About Us</label>
<url>about-us</url>
# service httpd status
Looking up localhost
Making HTTP connection to localhost
Sending HTTP request.
HTTP request sent; waiting for response.
Retrying as HTTP0 request.
Looking up localhost
Making HTTP connection to localhost
Sending HTTP request.
The small group discussion topics that have been submitted (with original titles in alphabetical order) are:
· 5 Tips for Working with Web Vendors (Nathan Gasser)
· 7 Tips to Improve Your Writing for the Web, Mobile, and Social (Marc Gravez)
· Creating a social media strategy that works for your program (Briana Morgan)
· Cyber Security and Risk Management (Austin Morris Jr.)
· Fitting Social Media into Your Already Busy Day (Gloria Bell)
· How the social web is changing knowledge and meaning (Seth Horwitz)
<?php
include_once("options.php");
$subject = @$_POST['subject'];
$reply = @$_POST['reply'];
$email = @$_POST['email'];
$email_text = @$_POST['email_text'];
$email_text = $email_text;
$arr_email = explode("|",$email);
[Wed Sep 18 11:09:38 2013] [warn] [client 71.162.162.59] mod_fcgid: stderr: PHP Warning: include_once(acf-date_time_picker/acf-date_time_picker.php): failed to open stream: No such file or directory in /home/inkedmag/public_html/wp-content/themes/inked/functions/acf.php on line 12, referer: http://209.35.52.122/wp-admin/admin.php?page=ws-plugin--s2member-gen-ops
[Wed Sep 18 11:09:38 2013] [warn] [client 71.162.162.59] mod_fcgid: stderr: PHP Warning: include_once(): Failed opening 'acf-date_time_picker/acf-date_time_picker.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/inkedmag/public_html/wp-content/themes/inked/functions/acf.php on line 12, referer: http://209.35.52.122/wp-admin/admin.php?page=ws-plugin--s2member-gen-ops
[Wed Sep 18 11:09:38 2013] [warn] [client 75.101.253.98] mod_fcgid: stderr: PHP Warning: include_once(acf-date_time_picker/acf-date_time_picker.php): failed to open stream: No such file or directory in /home/inkedmag/public_html/wp-content/themes/inked/funct