Skip to content

Instantly share code, notes, and snippets.

View kitsunet's full-sized avatar
:octocat:

Christian Müller kitsunet

:octocat:
View GitHub Profile
@kitsunet
kitsunet / composer.json
Last active October 13, 2017 22:19
Neos Collection Install
{
"name": "typo3/neos-base-distribution",
"description" : "TYPO3 Neos Base Distribution",
"license": "GPL-3.0+",
"support": {
"email": "[email protected]",
"irc": "irc://irc.freenode.org/typo3-neos",
"forum": "http://forum.typo3.org/index.php/f/121/",
"issues": "https://jira.typo3.org/",
"source": "https://git.typo3.org/"

Quick install PHP 7.0:

1. Install depends PHP 7.0
$ brew install autoconf automake gmp homebrew/versions/bison27 gd freetype t1lib gettext zlib mcrypt
2. Configure PHP 7.0
$ git clone --depth=1 https://github.com/php/php-src.git

$ cd php-src

Vagrant.configure("2") do |config|
#...
nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
if nfs_setting
config.bindfs.bind_folder '/vagrant', '/var/www/yourproject'
config.vm.synced_folder "./", "/vagrant", id: "vagrant-root", :nfs => nfs_setting
else
config.vm.synced_folder "./", "/var/www/yourproject", id: "vagrant-root", :nfs => nfs_setting
end
end
@bwaidelich
bwaidelich / AbstractTreeRepository.php
Last active March 2, 2016 11:14
A simple example showing how doctrine behaviours (in this chase (nested) tree and soft-delete) can be used within TYPO3 Flow.
<?php
namespace Your\Package\Domain\Repository;
use TYPO3\Flow\Annotations as Flow;
/**
* @Flow\Scope("singleton")
*/
abstract class AbstractTreeRepository extends \Gedmo\Tree\Entity\Repository\NestedTreeRepository implements \TYPO3\Flow\Persistence\RepositoryInterface {
@mneuhaus
mneuhaus / Caching.md
Created December 3, 2012 11:47
Caching

The Caching API currently is quite low-level. Tagging is useful to flush specific parts, but the tagging and flushing itself must still completly be implemented manually.

I think there are a few usecases that could be simplefied through some api love:

  • cache-entry for specific conditional arguments
  • cache-entry conditionally based on current user roles
  • cache-entry based on one or all entities of a specific type, maybe even a specific property
  • cache-entry based on directory/path changes

I could imagine to do this with a 'cacheEntry' API layer above the current Caching API:

<?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. *
* *
@kitsunet
kitsunet / _mixins.scss
Created May 11, 2012 06:58 — forked from garyharan/_mixins.scss
Useful scss mixins (rounded corners, gradients, text-field, button)
@mixin box-shadow($top, $left, $blur, $color, $inset: false) {
@if $inset {
-webkit-box-shadow:inset $top $left $blur $color;
-moz-box-shadow:inset $top $left $blur $color;
box-shadow:inset $top $left $blur $color;
} @else {
-webkit-box-shadow: $top $left $blur $color;
-moz-box-shadow: $top $left $blur $color;
box-shadow: $top $left $blur $color;
}
<?php
namespace Feature\Testing\Annotations;
/* *
* This script does not yet belong to the FLOW3 framework. *
* *
* 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. *
* *