Skip to content

Instantly share code, notes, and snippets.

View dchatry's full-sized avatar

Damien Chatry dchatry

View GitHub Profile
@dchatry
dchatry / sync_cer_references.php
Created March 16, 2018 14:46
[Drupal 8] Sync CER References
# To be executed in a script or directly in Devel PHP console
$nids = \Drupal::entityQuery('node')->condition('type','YOUR_NODE_TYPE')->execute();
$nodes = \Drupal\node\Entity\Node::loadMultiple($nids);
foreach($nodes as $node) {
cer_sync_corresponding_references($node);
}
@dchatry
dchatry / drupal8-links.php
Created August 27, 2018 12:27 — forked from colorfield/drupal8-links.php
Drupal 8 links, or where is my l() function
@dchatry
dchatry / gist:d3dd269ba7ef0819be33cf4acb9f2668
Created September 6, 2018 12:14
Allow more users on an already created git repository
// User have to be in the same group (apache for instance)
setfacl -R -m g:<whatever group>:rwX gitrepo
find gitrepo -type d | xargs setfacl -R -m d:g:<whatever group>:rwX