Skip to content

Instantly share code, notes, and snippets.

Avatar
😷

Michiel Roos Tuurlijk

😷
View GitHub Profile
View gist:8953882
page = PAGE
page.10 = TEXT
page.10 {
data = levelmedia:-1, slide
}
@Tuurlijk
Tuurlijk / ImportMeasurement.php
Created Mar 19, 2014
Map a FLOW model onto an exising table.
View ImportMeasurement.php
<?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;
View gist:9529896bed1d02c8b675
# 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 Jan 8, 2016
Verifying that +tuurlijk is my blockchain ID. https://onename.com/tuurlijk
View gist:7240a711605f5ed53f60
Verifying that +tuurlijk is my blockchain ID. https://onename.com/tuurlijk
@Tuurlijk
Tuurlijk / Permissions.yaml
Last active Jan 18, 2016
Configuration file for content permission extension. Actual TSConfig would be generated from this.
View Permissions.yaml
--
TYPO3:
BE:
Permissions:
keyParts:
- isUserGroup
- hasDoktype
- hasBackendLayout
- hasColumnPosition
ruleSets:
@Tuurlijk
Tuurlijk / BackendGroups.yml
Last active Feb 2, 2016
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
View BackendGroups.yml
---
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 Feb 1, 2017
Beating TYPO3 copy-mode-translations into submission
View BackendLayouts.ts
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 Jan 7, 2015
Disable TYPO3 extension in production environment
View AdditionalConfiguration.php
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
ghci color prompt
View ghci.conf
-- 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 Mar 3, 2017
National Vulnerability Database (NVD) XML | JSON | logstash
View logstash.conf
input {
tcp {
port => 5000
codec => json_lines {
}
}
}
## Add your filters / logstash plugins configuration here
filter {
You can’t perform that action at this time.