Example for ext:news timeRestrictionHigh archive Page: show only news older than 3 years relative to last day of year
-3 years 31 december
| # a) set env var initially to false | |
| DEVELOPMENT_ENVIRONMENT_ACTIVE = FALSE | |
| # b) set env var to true if env var CI_PROJECT_DIR is not set at all or is empty (The name of the variable is given by GitLab CI) | |
| ifeq ($(CI_PROJECT_DIR),) | |
| DEVELOPMENT_ENVIRONMENT_ACTIVE = TRUE | |
| endif | |
| # In an local environment the value will be TRUE now. So we can use this in IF queries in our Makefile | |
| # ... |
| # show version and applicationContext | |
| ./web/bin/typo3 | head -1 | |
| # Extract version only | |
| ./bin/typo3 | head -1 | grep -P '[0-9]+(\.[0-9]+)?([^\s]+)' -o |
| Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports | |
| Cmnd_Alias VAGRANT_NFSD = /sbin/nfsd restart | |
| Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /usr/bin/sed -E -e /*/ d -ibak /etc/exports | |
| Cmnd_Alias VAGRANT_HOSTSUPDATER_ADD = /bin/sh -c echo "*" >> /etc/hosts | |
| Cmnd_Alias VAGRANT_HOSTSUPDATER_REMOVE = /usr/bin/sed -i -e /*/ d /etc/hosts | |
| Cmnd_Alias VAGRANT_HOSTMANAGER_UPDATE = /bin/cp /Users/jglatz/.vagrant.d/tmp/hosts.local /etc/hosts | |
| Cmnd_Alias ADMIN_TOOLS_HTOP = /usr/local/bin/htop | |
| # additional user specification |
| #!/bin/bash | |
| IP_ADDRESS=localhost | |
| GRAYLOG3_URL="http://${IP_ADDRESS}:9000" | |
| GRAYLOG3_INPUT_GELF_TCP=' | |
| { | |
| "global": "true", | |
| "title": "Gelf TCP", | |
| "configuration": { |
| <?php | |
| if (!defined('TYPO3_MODE')) { | |
| die ('Access denied.'); | |
| } | |
| // Override configuration of LocalConfiguration | |
| $customChanges = [ | |
| 'GFX' => [ | |
| 'TTFdpi' => '96', | |
| 'colorspace' => 'RGB', |
| # based on https://github.com/codekitchen/dinghy/blob/master/cli/dinghy/unfs.rb#L30 https://github.com/codekitchen/dinghy/blob/master/cli/dinghy/unfs.rb#L35 | |
| Cmnd_Alias DINGHY_NFS = /usr/local/bin/dinghy nfs * | |
| %admin ALL=(root) NOPASSWD: DINGHY_NFS |
| [BUGFIX] for Mittwald to support PHP 7.3 FPM | |
| to prevent errors like >IDNA_CHECK_BIDI...< | |
| the guzzle version is fixed to 6.5.4 instead | |
| of version 6.5.5 with the command | |
| composer req guzzlehttp/guzzle:6.5.4 --update-with-all-dependencies | |
| Changelogs summary: | |
| - symfony/polyfill-intl-normalizer removed (installed version was v1.18.0) |
| #!/bin/bash | |
| # | |
| # at.supseven.jglatz.deleteapfssnapshots 1.0.0 | |
| # | |
| # Deletes all APFS Snapshots. | |
| # 2020 Josef Glatz | |
| # | |
| echo | |
| echo "Local Snapshots:" |
| <?php | |
| declare(strict_types = 1); | |
| namespace JosefGlatz\Theme\ViewHelpers\Format; | |
| use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; | |
| use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper; | |
| use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithContentArgumentAndRenderStatic; | |
| /** | |
| * Remove empty P tags from $content by using preg_replace |