Skip to content

Instantly share code, notes, and snippets.

Install XHProf

Pear

sudo pear upgrade PEAR
sudo pecl install xhprof-0.9.2

From source

######################################################################
# Copyright notice
#
# (c) 2013 webconsulting business services gmbh (office@webconsulting.at)
# All rights reserved
#
# Based on work of various TYPO3 authors.
#
# This script is part of the TYPO3 project. The TYPO3 project is
{namespace ro=Vendor\Package\ViewHelpers}
<section id="tab-user-2" class="tabPane">
<div class="fieldContainer">
<div class="accounts">
<f:for each="{user.accounts}" as="account">
<div class="account">
<p class="fieldRowLabel">{account.accountIdentifier}</p>
<div class="rolesContainer">
<table class="roles" cellspacing="0">
@jpgreth
jpgreth / User.php
Created December 9, 2013 16:05 — forked from Ocramius/User.php
Nice showing of Doctrine OneToMany and ManyToOne
<?php
namespace HelloWorld;
use InvalidArgumentException;
/**
* This class is somewhere in your library
* @Entity
* @Table(name="users")
*/
@jpgreth
jpgreth / Menu.html
Created December 11, 2013 14:57 — forked from bwaidelich/Menu.html
<ul class="nav{f:if(condition: menuClass, then: ' {menuClass}')}"<f:for each="{menu.attributes}" as="attributeValue" key="attributeName"> {attributeName}="{attributeValue}"</f:for>>
<f:for each="{menu.menuItems}" as="menuItem" iteration="iteration">
<f:if condition="{menuItem.header}">
<f:then>
<li class="nav-header {menuItem.class}"<f:for each="{menuItem.attributes}" as="attributeValue" key="attributeName"> {attributeName}="{attributeValue}"</f:for>>{menuItem.label}</li>
</f:then>
<f:else>
<f:if condition="{menuItem.separator}">
<f:then>
<li class="divider {menuItem.class}"<f:for each="{menuItem.attributes}" as="attributeValue" key="attributeName"> {attributeName}="{attributeValue}"</f:for>></li>
SQL:
images int(11) unsigned DEFAULT '0',
=======================================================
TCA
....
'images' => array(
'exclude' => 0,
'label' => 'images',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagerUtility::getFileFieldTCAConfig('images')
),
<?php
// Convert the Facebook IETF RFC 3339 datetime to timestamp format
$created_time = "2011-07-06T08:06:28+0000";
$date_source = strtotime($created_time);
$timestamp = date('Y-m-d H:i:s', $date_source);
?>
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://npmjs.org/install.sh | sh
( function ( window, undefined ) {
var Aloha = window.Aloha || ( window.Aloha = {} );
Aloha.settings = {
logLevels: { 'error': true, 'warn': true, 'info': true, 'debug': false, 'deprecated': true },
errorhandling: false,
ribbon: false,
locale: 'en',
floatingmenu: {
width: 630,