Skip to content

Instantly share code, notes, and snippets.

View svparijs's full-sized avatar

Sebastiaan van Parijs svparijs

View GitHub Profile
@svparijs
svparijs / katzenet-production.php
Created October 16, 2012 12:51 — forked from brgmn/katzenet-production.php
TYPO3 Surf sample configuration (github, TYPO3 Flow, ubuntu server) -> place this at /Build/Surf/ and deploy with ./flow surf:deploy katzenet-production
<?php
use \TYPO3\Surf\Domain\Model\Workflow;
use \TYPO3\Surf\Domain\Model\Node;
use \TYPO3\Surf\Domain\Model\SimpleWorkflow;
$application = new \TYPO3\Surf\Application\FLOW3();
$application->setOption('repositoryUrl', 'git@github.com:katzeag/Katzenet.git');
$application->setDeploymentPath('/var/www/katzenet-app');
$application->setOption('keepReleases', 20);
$application->setOption('composerCommandPath', '/usr/bin/composer');
App.ApplicationController = Ember.Controller.extend();
App.ApplicationView = Ember.View.extend({
templateName: "application"
});
App.DashboardController = Ember.Controller.extend();
App.DashboardView = Ember.View.extend({
templateName: "dashboard"
});
App.AdministrationController = Ember.Controller.extend();
App.AdministrationView = Ember.View.extend({
# Guide based on http://wiki.apache.org/couchdb/Installing_on_Debian
# Install dependencies
aptitude install -y build-essential libtool autoconf automake autoconf-archive pkg-config libssl0.9.8 libssl-dev zlib1g zlib1g-dev libcurl4-openssl-dev lsb-base ncurses-dev libncurses-dev libmozjs-dev libmozjs2d libicu-dev xsltproc
# Installing Erlang/OTP
cd /tmp/
wget http://www.erlang.org/download/otp_src_R15B01.tar.gz
tar xzf otp_src_R15B01.tar.gz
cd otp_src_R15B01
echo "skipping gs" > lib/gs/SKIP
function(doc) { emit(
[
doc.city,
'indicator_beroepsbevolking',
parseInt(doc.date.substr(0, 4))
//TEMPLATE
{{#linkTo account account}}View{{/linkTo}}
//ROUTER
App.Router.map(function() {
this.resource('accounts', function() {
//this.route('account', { path: ':accountguid' });
});
this.resource('account', { path: '/accounts/:accountguid' });
});
#!/bin/bash
if [ ! -d "Web" -o ! -d "Packages" -o ! -d "Configuration" ]; then
echo Make sure you run this from the TYPO3 Flow root directory!
echo
exit 1
fi
BASE_DIR=$(pwd)
##
# Fallback route
-
name: 'fallback'
uriPattern: ''
defaults:
'@package': 'TYPO3.Flow'
'@subpackage': 'Mvc'
'@controller': 'Standard'
<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
namespace Acme\JobQueueTest;
/* *
* This script belongs to the TYPO3 Flow package "Acme.JobQueueTest". *
* *
* */
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Utility\Files;
<?php
namespace My\Package\Service;
use TYPO3\Flow\Annotations as Flow;
/**
* @Flow\Scope("singleton")
*/
class EmailService {