Skip to content

Instantly share code, notes, and snippets.

Avatar
😷

Michiel Roos Tuurlijk

😷
View GitHub Profile
View importer
<?php
$basePath = '/home/Blah/tmp/TYPO3.CMS/typo3/sysext/core/Documentation/Changelog';
$dir = new DirectoryIterator($basePath);
foreach ($dir as $fileinfo) {
if (!$fileinfo->isDot()) {
$filename = $fileinfo->getFilename();
if (strpos($filename, '.htaccess') === 0 || strpos($filename, 'Howto') === 0) {
@Tuurlijk
Tuurlijk / Deprecation-non-namespaced.md
Created Sep 12, 2018
Details on deprecated legacy for a TYPO3 deprecation scanner
View Deprecation-non-namespaced.md

Use of non-namespaced classes

Description

In the past extensions used classnames starting with tx_. Since the intruduction of namespaces in TYPO3, you should use namespaces instead.

Impact

If you prefix your old classnames with \ throughout your code, things may still work.

Migration

Use proper namespaced code instead.

@Tuurlijk
Tuurlijk / Deprecation-legacy-files.md
Created Sep 12, 2018
Details on deprecated legacy for a TYPO3 deprecation scanner
View Deprecation-legacy-files.md

Renamed TYPO3 core libraries

Description

The classes t3lib_* and tslib_* have been removed from the core. You could use them when you had the compatibility layer enabled.

Impact

All code calling methods like t3lib_div::makeInstance() will no longer work.

Migration

Use the current replacements in the core like GeneralUtility::makeInstance().

View keybase.md

Keybase proof

I hereby claim:

  • I am tuurlijk on github.
  • I am tuurlijk (https://keybase.io/tuurlijk) on keybase.
  • I have a public key ASBSWukQjv68Unm_jrPIAQc4F1eytqzkRnrFLz-jREbOwgo

To claim this, I am signing this object:

@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 {
@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 / enable-xdebug.sh
Created Apr 11, 2016
phpbrew 5.5.32 xdebug installation
View enable-xdebug.sh
#!/bin/bash
#
# We need to re-build the php version because we removed it when compressing the box.
#
# In a newer version . . . I can pre-build the xdebug module when building the box, but 'disable' it by default.
# This can also be done for other common modules.
source /etc/profile.d/phpbrew.sh
phpbrew use php-5.5.32
@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 / 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:
You can’t perform that action at this time.