Skip to content

Instantly share code, notes, and snippets.

@fbrnc
fbrnc / gist:1120909
Created Aug 2, 2011
Export comments to rss
View gist:1120909
page = PAGE
page.config {
disableAllHeaderCode = 1
xhtml_cleaning = 0
admPanel = 0
disablePrefixComment = 1
noPageTitle = 1
# xmlprologue = xml_11
additionalHeaders = Content-type:application/rss+xml
@fbrnc
fbrnc / gist:1128283
Created Aug 5, 2011
ZendStudio Code Template
View gist:1128283
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<templates>
<template autoinsert="true" context="php" deleted="false" description="" enabled="true" name="ti">/* @var ${variable} ${class} */</template>
</templates>
@fbrnc
fbrnc / gist:1255052
Created Sep 30, 2011
Database Cache Backend Bug in Magento Enterprise Edition
View gist:1255052
265,266c265,266
< 'expire_time> ?' => 0,
< 'expire_time<= ?' => time()
---
> 'expire_time>' => 0,
> 'expire_time<=' => time()
@fbrnc
fbrnc / .inputrc
Created Oct 19, 2011
My inputrc configuration
View .inputrc
set meta-flag on
set input-meta on
set convert-meta off
set output-meta on
# Pos1 / Ende to jump within line
"\e[h": beginning-of-line
"\e[f": end-of-line
"\e[1~": beginning-of-line
"\e[4~": end-of-line
@fbrnc
fbrnc / typo3.xml
Created Oct 20, 2011
Code formatter for ZendStudio for TYPO3 Coding Guidelines
View typo3.xml
<?xml version="1.0" encoding="UTF-8"?>
<profiles>
<profile name="TYPO3">
<setting id="com.zend.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_force_split" value="false"/>
<setting id="com.zend.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_indent_policy" value="0"/>
<setting id="com.zend.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_line_wrap_policy" value="0"/>
<setting id="com.zend.php.formatter.core.formatter.alignment_for_arguments_in_method_invocation_force_split" value="false"/>
<setting id="com.zend.php.formatter.core.formatter.alignment_for_arguments_in_method_invocation_indent_policy" value="0"/>
<setting id="com.zend.php.formatter.core.formatter.alignment_for_arguments_in_method_invocation_line_wrap_policy" value="0"/>
<setting id="com.zend.php.formatter.core.formatter.alignment_for_assignment_force_split" value="false"/>
@fbrnc
fbrnc / .bashrc
Created Oct 20, 2011
Additions to ~/.bashrc
View .bashrc
alias ll='ls -lha'
# redirect svn diff output to colordiff
svndiff() {
svn diff "${@}" | colordiff
}
# ignore whitespaces
svndiff-white() {
svn diff --diff-cmd diff -x -uw "${@}" | colordiff
@fbrnc
fbrnc / default.vcl
Created Oct 27, 2011
Aoe_Static vcl for Varnish 3
View default.vcl
backend default {
.host = "127.0.0.1";
.port = "80";
.first_byte_timeout = 300s;
}
/*
Like the default function, only that cookies don't prevent caching
*/
sub vcl_recv {
@fbrnc
fbrnc / gist:616c94e4e463d50dd49f
Created Sep 29, 2015
OroCommerce Composer Packages
View gist:616c94e4e463d50dd49f
# /var/www/orocommerce/devbox/releases/current/vendor: tree -d -L 2
.
├── a2lix
│ └── translation-form-bundle
├── akeneo
│ └── batch-bundle
├── ass
│ └── xmlsecurity
├── behat
│ └── transliterator
@fbrnc
fbrnc / gist:3418992
Created Aug 21, 2012
Magento Cache Warming
View gist:3418992
curl --silent http://example.com/sitemap.xml | xpath -q -e "/urlset/url/loc/text()" > tmp.urls && siege -v -c 1 -r `cat tmp.urls | wc -l` -f tmp.urls
@fbrnc
fbrnc / gist:3975149
Created Oct 29, 2012
Disable admin notifications
View gist:3975149
<!-- in local.xml -->
<!-- Note that enterprise modules have dependencies to Mage_AdminNotification, so disabling it this way could break something -->
<config>
<modules>
<Mage_AdminNotification>
<active>false</active>
</Mage_AdminNotification>
</modules>
</config>