Skip to content

Instantly share code, notes, and snippets.

@datvance
datvance / install-libraries.php
Created January 20, 2022 15:56
A composer post-update/post-install command to find, download, copy, whatever front-end library files specified in a drupal module's "composer.libraries.json" file (which is non-standard).
<?php
/**
* A hack.
*
* A composer post-update/post-install command to find, download, copy, whatever front-end library files
* specified in a drupal module's "composer.libraries.json" file (which is non-standard). This is a replacement
* for the wikimedia/composer-merge-plugin package which is deprecated and causes issues on Pantheon
* See: https://www.drupal.org/project/webform/issues/3088336#comment-13312823
* And: https://www.drupal.org/project/documentation/issues/2605130
@datvance
datvance / nginx-joplin-ngrep-dump.txt
Last active December 6, 2020 08:41
A dump of network traffic between Joplin on iOS and nginx demonstrating a bug where Joplin doesn't send Authorization header (starting around line 338).
# ngrep -W byline port 8000
interface: eth0 (192.168.80.0/255.255.240.0)
filter: ( port 8000 ) and ((ip || ip6) || (vlan && (ip || ip6)))
#######
T 192.168.0.109:60850 -> 192.168.80.2:8000 [AP] #7
PROPFIND /webdav/joplin/locks/ HTTP/1.1.
Host: 192.168.0.50:8000.
Content-Type: text/xml.
Accept: */*.
Accept-Encoding: gzip, deflate.