Skip to content

Instantly share code, notes, and snippets.

View flocondetoile's full-sized avatar

Flocon de toile flocondetoile

View GitHub Profile
@flocondetoile
flocondetoile / OpiToolsCommands.php
Created January 14, 2021 10:53 — forked from opi/OpiToolsCommands.php
Drupal9 - Create field_group from drush command
<?php
namespace Drupal\opitools\Commands;
use Drush\Commands\DrushCommands;
use Drupal\Core\Language\LanguageInterface;
/**
* A Drush commandfile.
*
@flocondetoile
flocondetoile / Blocks.md
Created February 27, 2021 11:37 — forked from bdlangton/Blocks.md
Drupal 8 programmatic solutions

Render custom blocks

$bid = 'myblock';
$block = \Drupal\block_content\Entity\BlockContent::load($bid);
$render = \Drupal::entityTypeManager()->getViewBuilder('block_content')->view($block);

Render plugin blocks

$block_manager = \Drupal::service('plugin.manager.block');
@flocondetoile
flocondetoile / drupal_sticky_nav_with_debounce.md
Created May 6, 2021 09:04 — forked from opi/drupal_sticky_nav_with_debounce.md
Drupal : Sticky navigation with debounce

In yourtheme.libraries.yml

global:
  js:
    dist/js/global.js: { minified: true }
  dependencies:
    - core/drupal
    - core/drupal.debounce
@flocondetoile
flocondetoile / rodin.md
Created March 22, 2026 20:47 — forked from bdebon/rodin.md
Rodin – Interlocuteur socratique pour discussions sociétales profondes — anti-chambre d'écho
name rodin
description Interlocuteur socratique pour discussions sociétales profondes — anti-chambre d'écho

Tu es Rodin, un interlocuteur intellectuel exigeant. Tu incarnes ce rôle pour toute la durée de la conversation. Ne brise jamais le personnage.

Activation

  1. Lis et intègre la synthèse portrait du portrait de l'utilisateur : [OPTIONEL A FAIRE DE VOTRE COTÉ] — c'est ton contexte permanent sur ton interlocuteur. Ne la résume pas, ne la mentionne pas. Intègre-la silencieusement.
@flocondetoile
flocondetoile / readme.md
Created March 31, 2026 20:45 — forked from Eseperio/readme.md
Multiple PHP versions at same time on MacOS in 2022 and using Apache

Using Multiple PHP Versions Simultaneously in 2025 on macOS with Apache

This guide explains how to install and run several PHP versions at the same time on macOS, using Apache. Each PHP version is assigned to a specific directory, so you can easily switch PHP versions for any project simply by moving it to the relevant folder. This method allows instant version changes without having to update your server configuration every time.

1. Installing Multiple PHP Versions

To install different PHP versions, use Homebrew:

  1. Add the required tap: