Skip to content

Instantly share code, notes, and snippets.

View johannessteu's full-sized avatar
🌵
:)

Johannes Steu johannessteu

🌵
:)
View GitHub Profile
Verifying that +johannessteu is my blockchain ID. https://onename.com/johannessteu
@johannessteu
johannessteu / johannessteu.zsh-theme
Last active April 17, 2016 05:59
johannessteu.zsh-theme
ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
PROMPT='%{$fg_bold[yellow]%}%* %{$fg_bold[white]%}%M ${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
@johannessteu
johannessteu / ES Query for Filter.json
Last active September 9, 2015 17:53
Productfilter with TypoScript2 and ES
GET /typo3cr-1441789525/Vendor-Foo:Product/_search
{
"query" : {
"terms":
{ "sku": ["2239", "2235", " 2277", "2278", "2276", "2279"]}
},
"facets":
{
"color": {"terms": {"field": "color", "all_terms": false}}
}
➜ flow-3.0.0 composer show -i
composer/installers v1.0.21 A multi-framework Composer library installer
doctrine/annotations v1.2.7 Docblock Annotations Parser
doctrine/cache v1.4.2 Caching library offering an object-oriented API for many cache backends
doctrine/collections v1.3.0 Collections Abstraction library
doctrine/common v2.5.1 Common Library for Doctrine projects
doctrine/dbal v2.5.1 Database Abstraction Layer
doctrine/inflector v1.0.1 Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator 1.0.5 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer v1.0.1 Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
Uncaught exception in line 133 of /home/vagrant/htdocs/flow-3.0.0/Packages/Libraries/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php: An exception occured in driver: SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111)
29 Doctrine\DBAL\Driver\AbstractMySQLDriver::convertException("An exception occured in driver: SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111)", Doctrine\DBAL\Driver\PDOException)
28 Doctrine\DBAL\DBALException::driverException(Doctrine\DBAL\Driver\PDOMySql\Driver, Doctrine\DBAL\Driver\PDOException)
27 Doctrine\DBAL\Driver\PDOMySql\Driver::connect(array|6|, NULL, NULL, array|0|)
26 Doctrine\DBAL\Connection::connect()
25 TYPO3\Flow\Persistence\Doctrine\EntityManagerFactory_Original::create()
24 TYPO3\Flow\Object\ObjectManager::buildObjectByFactory("Doctrine\Common\Persistence\ObjectManager")
23 TYPO3\Flow\Object\ObjectManager::get("Doctrine\Common\Persistence\ObjectManager")
22 TYPO3\Flow\Persistence\Doctrine\PersistenceManager::TYPO3\Flow\Persis
@johannessteu
johannessteu / composer.json
Last active August 29, 2015 14:28 — forked from kitsunet/composer.json
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/"
@johannessteu
johannessteu / gulpfile.js
Created July 20, 2015 08:16
Gulp Tasks for Neos
var gulp = require('gulp');
// Plugins
var sass = require('gulp-sass');
var uglify = require('gulp-uglify');
var cssmin = require('gulp-cssmin');
var rename = require('gulp-rename');
var imagemin = require('gulp-imagemin');
var concat = require('gulp-concat');
var copy = require('gulp-copy');
{
"repositories": [
{
"type": "composer",
"url": "http://composer.typo3.org/"
},
{
"type": "git",
"url": "https://github.com/jSteu/gridelements.git"
},
@johannessteu
johannessteu / NodeTypes.yaml
Created May 8, 2015 08:40
TYPO3 Neos 1.2 Plugin definition
'Vendor.Name.package:MyPlugin':
superTypes: ['TYPO3.Neos:Plugin']
ui:
group: 'plugins'
label: 'My plugin'
icon: 'icon-truck'
inspector:
groups:
configuration:
label: 'Configuration'
<?php
namespace Vendor\Package\FlowQuery;
class ResourceUrlOperation extends \TYPO3\Eel\FlowQuery\Operations\AbstractOperation {
/**
* {@inheritdoc}
*
* @var string