Skip to content

Instantly share code, notes, and snippets.

@RafaelKa
RafaelKa / power_supply.sh
Last active August 28, 2015 15:36
This script shows power_supply properties from AXP209 from cubietruck
#!/usr/bin/env bash
# This script shows power_supply properties from AXP209
# You can run it without arguments or with ALL as argument to show all available properties.
# Or you can specify a list of properties as argument, which you want to show.
# If you want only one property, this script prints it without property name!
declare -A POWER_SUPPLY_PROPERTIES
# 0x80 0x40 0x20 0x10 0x08 0x04 0x02 0x01
@RafaelKa
RafaelKa / Routes.yaml
Created April 1, 2014 12:45
econics subfolders for actioncontroller
##
# subfolder, controller and action with optional format
-
name: 'subfolder, controller and action with optional format'
uriPattern: '{@cf}/{@cn}/{@action}(.{@format})'
defaults:
'@package': 'Foo.Bar'
'@controller': '{@cf}\{@cn}'
'@format': 'html'
@RafaelKa
RafaelKa / README.md
Last active August 29, 2015 14:01 — forked from progandy/README.md

mod_proxy_handler

This module for apache 2.4 allows you to use e.g. mod_proxy_fcgi in AddHandler or SetHandler directives.

Compile and install the module with apxs:

apxs -i -a -c mod_proxy_handler.c

Example:

<?php
namespace Your\Package\ViewHelpers\Format;
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper;
/**
* ViewHelper rendering the given HTML string through HTMLPurifier
*/
class PurifyViewHelper extends AbstractViewHelper {
@RafaelKa
RafaelKa / TYPO3.Neos.Untranslated-Strings.txt
Last active August 29, 2015 14:26
A list with untranslated strings from TYPO3.Neos project
clickToDelete
clickToEdit
clickToView
users.accountsAndRoles
users.createNew
users.name
users.youCannotDeleteYourself
module.administration.packages.index.legend
Package.Name
<?php
namespace ......;
/* *
* This script belongs to the TYPO3 Flow package '........'. *
* *
* */
use TYPO3\Flow\Annotations as Flow;
@RafaelKa
RafaelKa / ConfirmationDialogCommandController.php
Created November 19, 2012 15:53
issue 43104 : Add Confirm- Radio- CheckBoxDialog to CommandController(CLI)
<?php
namespace ...........;
/* *
* This script belongs to the TYPO3 Flow package '.........'. *
* *
* */
use TYPO3\Flow\Annotations as Flow;
<?php
namespace Flows\IdentityValidation\Domain\Model;
/* *
* This script belongs to the TYPO3 Flow package "Flows.IdentityValidation".*
* *
* */
use TYPO3\Flow\Annotations as Flow;
use Doctrine\ORM\Mapping as ORM;
@RafaelKa
RafaelKa / UniqueEntityValidator.php
Last active December 11, 2015 07:19
only isTrustedProperty() method to implement
<?php
namespace TYPO3\Flow\Validation\Validator;
/* *
* This script belongs to the TYPO3 Flow 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. *
* *
<?php
namespace Flows\IdentityValidation\Controller;
/* *
* This script belongs to the TYPO3 Flow package "Flows.IdentityValidation".*
* *
* */
use TYPO3\Flow\Annotations as Flow;