Skip to content

Instantly share code, notes, and snippets.

View pierregermain's full-sized avatar
💧
10

Pierre Germain pierregermain

💧
10
  • Madrid
View GitHub Profile
@timnugent
timnugent / 99-xone.rules
Last active June 2, 2023 14:28
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"
@gabesullice
gabesullice / ResponseSubscriber.php
Last active May 5, 2022 22:56
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;