Skip to content

Instantly share code, notes, and snippets.

View Tuurlijk's full-sized avatar
🏠
Working from home

Michiel Roos Tuurlijk

🏠
Working from home
View GitHub Profile
page = PAGE
page.10 = TEXT
page.10 {
data = levelmedia:-1, slide
}
@Tuurlijk
Tuurlijk / ImportMeasurement.php
Created March 19, 2014 11:00
Map a FLOW model onto an exising table.
<?php
namespace Typofree\Typo3Benchmark\Domain\Model;
/* *
* This script belongs to the TYPO3 Flow package "Typofree.Typo3Benchmark".*
* *
* */
use TYPO3\Flow\Annotations as Flow;
use Doctrine\ORM\Mapping as ORM;
@Tuurlijk
Tuurlijk / gist:9529896bed1d02c8b675
Created November 20, 2015 09:44
Vagrant shell alias
# Vagrant
alias vu="vagrant up"
alias vh="vagrant halt"
alias vr="vagrant reload"
alias vs="vagrant ssh"
alias vbu="vagrant box update"
@Tuurlijk
Tuurlijk / gist:7240a711605f5ed53f60
Created January 8, 2016 16:21
Verifying that +tuurlijk is my blockchain ID. https://onename.com/tuurlijk
Verifying that +tuurlijk is my blockchain ID. https://onename.com/tuurlijk
@Tuurlijk
Tuurlijk / Permissions.yaml
Last active January 18, 2016 12:59
Configuration file for content permission extension. Actual TSConfig would be generated from this.
--
TYPO3:
BE:
Permissions:
keyParts:
- isUserGroup
- hasDoktype
- hasBackendLayout
- hasColumnPosition
ruleSets:
@Tuurlijk
Tuurlijk / BackendGroups.yml
Last active February 2, 2016 11:07
Would you like to manage your user and group configurations in Git? These are from the introduction package. Quickly kickstart those new sites with elaborate group setups? https://github.com/MaxServ/t3ext-yaml-configuration/blob/master/Documentation/CommandReference/Index.rst
---
TYPO3:
Access:
be_groups:
-
cruser_id: "2"
db_mountpoints: "14"
description: "The simple editors group demonstrates a handy and realistic set of permissions and options for every day backend users who simply manages content and pages. More detailed and advanced features are hidden for embers of this user group to give a more simple interface\n"
explicit_allowdeny:
- "tt_content:CType:header:ALLOW"
@Tuurlijk
Tuurlijk / BackendLayouts.ts
Last active February 1, 2017 12:36
Beating TYPO3 copy-mode-translations into submission
lib.layout.content = COA
lib.layout.content {
10 < styles.content.get
10.select {
where = colPos={field:colPos}
where.insertData = 1
where.stdWrap.noTrimWrap = || AND NOT sys_language_uid = 0|
where.stdWrap.noTrimWrap.if.isTrue.postUserFunc = TypoScript\PageIsCopyModeTranslation->evaluate
includeRecordsWithoutDefaultTranslation = 1
@Tuurlijk
Tuurlijk / AdditionalConfiguration.php
Created January 7, 2015 10:43
Disable TYPO3 extension in production environment
if (!empty($_SERVER['CONTEXT'])) {
if (TYPO3_MODE == 'FE' && $_SERVER['CONTEXT'] === 'Production') {
// Avoid cookie set by session_start in rsaauth
if (isset($TYPO3_CONF_VARS['EXT']['ignoredExt'])) {
$TYPO3_CONF_VARS['EXT']['ignoredExt'] .= ',rsaauth';
} else {
$TYPO3_CONF_VARS['EXT']['ignoredExt'] = 'rsaauth';
}
}
}
@Tuurlijk
Tuurlijk / ghci.conf
Created May 27, 2017 07:17
ghci color prompt
-- Lambda prompt
-- Background color sequence = \ESC[48;5;236m
-- where
-- 236 = one of the 256 ansi color codes
-- Foreground color sequence = \ESC[38;5;244m
-- where
-- 244 = one of the 256 ansi color codes
-- Combined color sequence = \ESC[48;5;236;38;5;244m
-- Reset color = \ESC[m
--
@Tuurlijk
Tuurlijk / logstash.conf
Created March 3, 2017 14:21
National Vulnerability Database (NVD) XML | JSON | logstash
input {
tcp {
port => 5000
codec => json_lines {
}
}
}
## Add your filters / logstash plugins configuration here
filter {