Skip to content

Instantly share code, notes, and snippets.

@overcome
overcome / realurl_conf.php
Created April 17, 2017 11:21 — forked from oliverthiele/realurl_conf.php
TYPO3 RealURL-Konfiguration Example
<?php
// Not needed in current RealURL versions: $TYPO3_CONF_VARS['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array(
'_DEFAULT' => array(
'init' => array(
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile,redirect[301]',
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'adminJumpToBackend' => true,
@overcome
overcome / LocalConfiguration.php
Created April 17, 2017 13:31 — forked from oliverthiele/LocalConfiguration.php
Redis Configuration in TYPO3
<?php
return array(
// ...
'SYS' => array(
'caching' => array(
'cacheConfigurations' => array(
'cf_cache_hash' => array(
'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\RedisBackend',
'options' => array(
'database' => 10,
@overcome
overcome / contao3.conf
Created May 19, 2017 10:13 — forked from RavuAlHemio/contao3.conf
Contao 3 and 4 nginx.conf
index index.php index.html;
location ~ ^/(favicon\.ico|robots\.txt)$ {
allow all;
log_not_found off;
access_log off;
}
# don't show templates
location ~* \.(tpl|html5|xhtml)$ {
@overcome
overcome / newstitle.ts
Created May 23, 2017 12:04
Newstitel als Seitentitel von tx_news
#default
page.headerData.5 = TEXT
page.headerData.5.field = subtitle
page.headerData.5.ifEmpty.field = title
page.headerData.5.wrap =| - {$pageTitle}
# auf der News Detailseite wird der Newstitel als Browsertitel ausgegeben
# id ändern!!
#[globalVar = TSFE:id=999999]
[PIDinRootline = 1,2,3]
@overcome
overcome / page.meta
Created May 23, 2017 12:04
TypoScript: page.meta
################# Title ############################
config.noPageTitle = 2
page.headerData.5 = TEXT
page.headerData.5.field = subtitle//title
page.headerData.5.noTrimWrap = |<title>Kunden-Name: |</title>|
################# Meta-Tags ########################
page.meta{
keywords.stdWrap.cObject = COA
keywords.stdWrap.cObject {
10 = TEXT
@overcome
overcome / nginx.conf
Created August 16, 2017 05:53 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@overcome
overcome / MyModel.php
Last active August 23, 2017 01:59
typo3 extbase categories
<?php
/**
* categories
*
* \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\Category>
* @lazy
*/
protected $categories;
/**
* MyModel constructor.
@overcome
overcome / SolrTYPO3.md
Created August 24, 2017 07:56 — forked from fedir/SolrTYPO3.md
TYPO3 Solr extension configuraiton sample

Constants

plugin.tx_solr {
	solr {
	scheme = http

	host = YY.YY.YY.YY
	port = 8080

path = /solr/core_XXXX/

@overcome
overcome / _filter.sass
Created December 8, 2017 07:04 — forked from johnferrie/_filter.sass
CSS3 Filter Effects Sass Mixin
// https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html
//
// grayscale ex: filter: grayscale(100%);
// sepia ex: filter: sepia(100%);
// saturate ex: filter: saturate(0%);
// hue-rotate ex: filter: hue-rotate(45deg);
// invert ex: filter: invert(100%);
// brightness ex: filter: brightness(15%);
// contrast ex: filter: contrast(200%);
// blur ex: filter: blur(2px);
@overcome
overcome / client.js
Created June 5, 2018 02:41 — forked from hagino3000/client.js
WebSocket with binary data
var socket = null;
function bootstrap() {
// 適当な図形を描画
var c = document.getElementById('mycanvas');
var ctx = c.getContext('2d');
ctx.globalalpha = 0.3;
for(var i=0; i<1000; i++) {
ctx.beginPath();