Skip to content

Instantly share code, notes, and snippets.

<catalog_product_view>
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
</catalog_product_view>
<?xml version="1.0"?>
<config>
<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<system>
# 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
# 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
#
# 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
# Generated by iptables-save v1.4.7 on Mon Jan 7 16:20:09 2002
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [1:140]
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -m state --state NEW -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -m state --state NEW -j ACCEPT
#/etc/httpd/conf.d/mod_fastcgi.conf
LoadModule fastcgi_module modules/mod_fastcgi.so
<IfModule mod_fastcgi.c>
Alias /php5.fcgi /usr/sbin/php-fpm.fcgi
AddType application/x-httpd-fastphp5 .php
#
# 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
@ryaan-anthony
ryaan-anthony / 1
Last active December 21, 2015 19:28
$product->setManufacturer("ACME");
$product->save();
DROP TABLE IF EXISTS `log_visitor`;
CREATE TABLE `log_visitor` (
`visitor_id` bigint(20) unsigned NOT NULL auto_increment,
`session_id` char(64) NOT NULL default '',
`store_id` char(64) NOT NULL default '',
`first_visit_at` datetime default NULL,
`last_visit_at` datetime NOT NULL default '0000-00-00 00:00:00',
`last_url_id` bigint(20) unsigned NOT NULL default '0',
PRIMARY KEY (`visitor_id`)