Weblog aka "Blog"

WinSCP "Keep remote directory up to date" doesn't upload / work due to timestamp problems

30.06.2020 - 12:20

If you should also encounter the problem that WinSCP's wonderful syncing / folder watch functionaity "Keep remote directory up to date" doesn't work correctly, first have a look here, also for troubleshooting:...

FTP, SCP, SSH, Upload, WinSCP

Drupal 8: Add menu item with anchor link programmatically in .menu.yml

08.06.2020 - 17:04

For a Drupal 8 EU Cookie Compliance patch I needed a way to add an anchor link as default menu item programmatically in .menu.yml


Migrating ownCloud 10.4.1 to nextcloud 18 Odyssee

28.05.2020 - 20:55

Migrating ownCloud to nextcloud typically isn't that hard thank to the nextcloud developers who provide a user friendly migration script: https...

Drupal 8: Add field validation constraint programmatically

14.05.2020 - 16:41

In foundation_anchor_menu_block module I needed to add a validation to a field in a block to ensure the entered value matches the...

Drupal 8: Delete view programmatically

12.05.2020 - 15:22

If you should run into the same situation, that you'd like to delete a view programmatically, for example on module uninstall, here you go:

  1. \...

VSCode: (Better) alternative to phpcs & intelephense for Drupal Code style / linting: phpcbf

08.05.2020 - 18:00

After fighting a lot with phpcs, intelephense and WSL2 in VSCode, I found vscode-phpcbf and hey, it works! :D immediately!

And it shares the Standard with phpcs!


Drupal, PHP, VSCode

PR_END_OF_FILE_ERROR in Firefox may be caused by fail2ban

06.05.2020 - 13:12

If you experience a PR_END_OF_FILE_ERROR in firefox, I experienced that it might be caused by a fail2ban block for the given user IP on SSL / https pages.

Just as a note to myself if I should ever run into that problem again.


Error, Firefox, Server

Using wget for Cronjob without output

24.02.2020 - 10:37

Short snippet to use for a cronjob to call a url if you don't want any output:

* * * * * /usr/bin/wget wget -qO /dev/null https://www.example.com/your-script-to-run

Or to only use HEAD:
* * * * * /usr/bin/...

Download PDFs in Cordova InAppBrowser (3.1.0)

09.12.2019 - 18:28

I wasted several hours on handling PDF downloads in cordovas inAppBrowser.

My situation was that a page was loaded in inAppBrowser which...

Drupal 8 print current breadcrumb trail with route title

07.08.2019 - 20:38

Whao, that wasn't as easy as I thought. I wanted to print out the two top level breadcrumb elements, without "Home", with node title in a custom block. I tried it in many different ways but ran into surprises every time. So finally I'd like to...

Syndicate content