Skip to content

Instantly share code, notes, and snippets.

#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1316/rpcbind
tcp 0 0 0.0.0.0:38098 0.0.0.0:* LISTEN 1334/rpc.statd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2702/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 3090/cupsd
tcp 0 0 :::111 :::* LISTEN 1316/rpcbind
tcp 0 0 :::80 :::* LISTEN 13888/httpd
tcp 0 0 :::22 :::* LISTEN 2702/sshd
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
<?xml version="1.0"?>
<config>
<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<system>
<catalog_product_view>
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
</catalog_product_view>
<block type="core/text_list" name="top.menu" as="topMenu" translate="label">
<label>Navigation Bar</label>
<block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml">
<block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>
</block>
</block>
delimiter ;;
drop procedure if exists wtfman;;
create procedure wtfman()
begin
SET @count = 0;
WHILE @count < 10 DO
SELECT @var := id FROM source ORDER BY RAND() LIMIT 1;
INSERT INTO test VALUES (@var);
SET @count = @count + 1;
END WHILE;
delimiter ;;
drop procedure if exists build_catalog;;
create procedure build_catalog(IN categories INT, IN products INT)
begin
SET @category_count = 1;
SET @CATNAMEPREFIX = "Category ";
SET @CATURLKEYPREFIX = "cat-";
SET @CATURLPATHPREFIX = "catpath-";
SET @ROOTCATEGORY = 2;
SET @INCLUDEINMENU = 1;
<?php
class Ip_Global_Model_Backend_Newoption extends Mage_Eav_Model_Entity_Attribute_Backend_Abstract
{
/**
* Save EAV attribute option value if doesn't exist
*
* @param Varien_Object $object
* @return Ip_Global_Model_Backend_Newoption
*/
<?php
class MB_Dynamicconfigurable_Block_Catalog_Product_View extends Mage_Catalog_Block_Product_View
{
function _prepareLayout()
{
parent::_prepareLayout();
$product = $this->getProduct();
if (("product.info" == $this->getNameInLayout()) && $product->isConfigurable() && $product->getIsDynamic())