Skip to content

Instantly share code, notes, and snippets.

View pierregermain's full-sized avatar
💧
10

Pierre Germain pierregermain

💧
10
  • Madrid
View GitHub Profile
@gabesullice
gabesullice / ResponseSubscriber.php
Last active August 8, 2024 06:54
Dynamically Redirecting Drupal 8 Node Pages
<?php
/**
* This file should live at my_module/src/EventSubscriber/ResponseSubscriber.php
*/
namespace Drupal\my_module\EventSubscriber;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\EventDispatcher\Event;
@timnugent
timnugent / 99-xone.rules
Last active August 26, 2024 20:17
udev rule for the Xone 23C; sets configuration to state "2" so this shows up as a 4 input/4 output soundcard - otherwise shows up as only 2 input/2 output. Only tested with the Xone 32C configured for DVS. Put this file in /etc/udev/rules.d/
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="22f0", ATTR{idProduct}=="0008", ATTR{bConfigurationValue}="2"