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. *
* *

Running Ubuntu on a Macbook Air

You don't have to be a slave to OS X! Here's a guide to a sane dual-booting setup with Ubuntu 12.10 on your shiny MacBook Air. This is written and tested for a MacBook Air 5,2 (Mid 2012), but likely works the same with any modern Macbook.

Install according to instructions at this URL:

<?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', '');
@egobude
egobude / install_netextender_ubuntu_64_bit
Last active December 17, 2021 11:22
Install NetExtender | Ubuntu 64 Bit
1. go to https://sslvpn.demo.sonicwall.com/cgi-bin/welcome
2. log in with demo/password
3. click on NetExtender icon, this will download a tar.gz with the client
4. sudo ln -s /lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/libssl.so.6
5. sudo ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.6
6. un-tar the client, make install script executable and launch install
<?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>