Skip to content

Instantly share code, notes, and snippets.


Josef Glatz josefglatz

Block or report user

Report or block josefglatz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View vhost-anonip-directly-before-logging.conf
# ...
CustomLog "|/usr/local/bin/anonip --output /var/log/apache2/" proxy
# ...
josefglatz / gitlab-ci_checkTYPO3deprecationsInYourExtensionsSnippet.yml
Last active Jul 8, 2019
GitLab CI TYPO3 Deprecations Check with latest version usage of Tuurlijk/typo3scan
View gitlab-ci_checkTYPO3deprecationsInYourExtensionsSnippet.yml
stage: test
image: edbizarro/gitlab-ci-pipeline-php:7.2
- 'which wget || ( sudo apt-get update -y && sudo apt-get install wget -y )'
- mkdir -p Build/Report/Deprecations
- cd $CI_PROJECT_DIR/app
- curl -s | grep "browser_download_url.*phar" | cut '-d' ':' '-f' '2,3' | tr '-d' '\"' | wget -qi -
- chmod +x typo3scan.phar
josefglatz / Redirect exact TYPO3 index.php?id=1 URI to rootpage aka homepage
Created Feb 11, 2019
Redirect TYPO3 index.php with ID 1 to root page with slash
View Redirect exact TYPO3 index.php?id=1 URI to rootpage aka homepage
# Redirects an exact index.php?id=1 to /
RewriteCond %{QUERY_STRING} ^id=1$
RewriteRule ^index.php(.*) /$1? [R=301,L]
josefglatz /
Last active Dec 30, 2018
Synology cheatsheet: how to query internal Synology postgresql database
# Connect to you NAS with YOUR admin account
ssh yourAdminUserAccount@nas.ip
# go sudo
sudo -i
# switch to user postgres
su - postgres
josefglatz / TYPO3 9.5 LTS open tasks-bugs-suggestions
Last active Dec 10, 2018
TYPO3 9.5. LTS open task/bug/suggestion list thoughts
View TYPO3 9.5 LTS open tasks-bugs-suggestions

For editors missing stuff or newly introduced bugs/regressions/changes

(This list is updated regulary/if something is tested/fixed by me)

a) TYPO3 Pagetree: New pages must respect TCAdefaults.pages.hidden = 0 and other properties If you create a new page within the pagetree, it's always disabled per default. it would be a real benefit if such settings get's respected

josefglatz / TYPO3-surf-deployment.php
Last active Jun 19, 2018
TYPO3/surf snippets for TYPO3 CMS deployments
View TYPO3-surf-deployment.php
// ...
* Set custom symlinks (in addition to fileadmin and uploads)
'web/typo3conf/l10n' => '../../../../shared/Data/l10n'
josefglatz /
Last active Jun 4, 2018
Plesk 17.x Cheatsheet to autostart websites after a system reboot

I used the following commands to fix stopped hosted plesk websites (with nginx reverse proxy and Apache as webserver) after a system reboot

/usr/local/psa/admin/sbin/nginxmng --disable
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all

Environment: Ubuntu 16.0.4; Plesk 17.0-17.5

It could be possible that it's enough to just only enable the nginx service (the plesk way)

josefglatz /
Last active Mar 19, 2018
Cheatsheet: How to extract certificate and private key from a PFX file

How to extract certificate and private key from a PFX file

Given PFX file

stern-domain-at.pfx (optionally secured with passphrase)

Openssl needs to be installed


josefglatz / fluid-modulotest.html
Last active Oct 17, 2017
TYPO3 Fluid Easy Modulo (with ext:vhs)
View fluid-modulotest.html
<f:if condition="{i.cycle -> v:math.modulo(b: 3)} === 0">
<div class="break-lg-up"></div>
<!-- without the last item -->
<f:if condition="({i.cycle -> v:math.modulo(b: 3)} === 0) && (!{i.isLast})">
<div class="break-lg-up"></div>
View ext-vhs-ifViewHelper-example.php
<v:if stack="{0: '{v:content.get(column: \"0\")}', 1: 'OR', 2: '{v:content.get(column: \"1\")}'}">
This text is only shown, if colPos 0 and colPos 1 has content elements.
You can’t perform that action at this time.