Skip to content

Instantly share code, notes, and snippets.

View egobude's full-sized avatar
😀
happy programmer

Benedikt Schmitz egobude

😀
happy programmer
  • ROSE Bikes GmbH
  • Bocholt, Germany
View GitHub Profile
<?php
namespace TYPO3\Form\Factory;
/* *
* This script belongs to the FLOW3 package "TYPO3.Form". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
@egobude
egobude / project.php
Created April 1, 2014 08:09
TYPO3.Surf | Deployment
<?php
$workflow = new \TYPO3\Surf\Domain\Model\SimpleWorkflow();
$deployment->setWorkflow($workflow);
$node = new \TYPO3\Surf\Domain\Model\Node('deployment Staging');
$node->setHostname('deployment.server.com');
$node->setOption('username', 'root');
#$node->setOption('password', '');
<?php
use \TYPO3\Surf\Domain\Model\Node;
use \TYPO3\Surf\Domain\Model\SimpleWorkflow;
/**
* For this deployment the following env variables are required:
*
* DEPLOYMENT_HOST: hostname of the remote server to deploy to
* DEPLOYMENT_PATH: path on the remote server to deploy to
* DEPLOYMENT_USER: username to connect to the remote server
# Encoding: utf-8
cookbook 'yum'
cookbook 'vim'
cookbook 'curl'
cookbook 'nginx'
cookbook 'logstash', git: 'git://github.com/lusis/chef-logstash.git'
cookbook 'elasticsearch', git: 'git://github.com/elasticsearch/cookbook-elasticsearch.git'
<?php
namespace Acme\JobQueueTest;
/* *
* This script belongs to the TYPO3 Flow package "Acme.JobQueueTest". *
* *
* */
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Utility\Files;
<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>
<?php
class Shopware_Plugins_Frontend_OrderMod_Bootstrap extends Shopware_Components_Plugin_Bootstrap
{
/**
* (non-PHPdoc)
* @see Shopware_Components_Plugin_Bootstrap::install()
*/
public function install()
{
@egobude
egobude / gist:010be3be6a133b38324b
Last active August 29, 2015 14:10
Install IonCube

Install IonCube

Download ionCube loaders

wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

Extract

tar zxvf ioncube_loaders_lin_x86-64.tar.gz