Skip to content

Instantly share code, notes, and snippets.

View josbeir's full-sized avatar

Jasper Smet josbeir

View GitHub Profile
@josbeir
josbeir / INSTRUCTIONS.md
Last active October 2, 2024 10:48
Script that sets TARGET_SINK volume to 100% when ACTIVE_SINK is selected as alsa device.

Script that sets TARGET_SINK volume to 100% when ACTIVE_SINK is selected as alsa device.

I'm using a PipeWire device sink that applies an equalizer configuration. This works, but in my case, the volume of the source device needs to be maxed out to use the sink device properly.

I was tired of always setting the volume to 100% and then switching back to the sink device which has the equalizer config applied.

So, I created a little script that monitors for device changes. It sets the volume of the source to 100% when the sink device is selected and restores the volume to its previous state when switching back.

Instructions

object(stdClass) {
uid => '12049902010101'
id => '120499'
edi => '12049902010101'
variant => '2'
store => '01'
season => 'NOS'
brand => '282'
description => 'Emmertje in kunststof, water geraakt er niet uit! '
description2 => ''
<?php
App::uses('Folder', 'Utility');
class WkhtmlToPdf {
public $settings = array(
'page-size' => 'A4',
'orientation' => 'Portrait',
'margin-bottom' => 5,
'margin-left' => 10,
@josbeir
josbeir / EmberDataComponent.php
Last active August 29, 2015 13:56
Cakephp Ember-data mapper component
<?php
/**
* CakePHP Model data to EMBER-DATA mapper Component
*
* @author Jasper Smet <josbeir@gmail.com>
* @license MIT
*
* Usage:
* --------
*
commit cc204d5ff616d09569d2e735e08cc38c0b332c0a
Author: fritsch <peter.fruehberger@gmail.com>
Date: Tue Oct 15 22:38:01 2013 +0200
ActiveAE: Special patch for josbeir to use at least 48 khz
diff --git a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
index 4cae9e8..75531ad 100644
--- a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
+++ b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
array(
'brands' => array(
'global' => true,
'facet_filter' => array(
'bool' => array(
'must' => array(
(int) 0 => array(
'term' => array(
'subcategory_id' => '45'
)
/app/Model/User.php (line 277)
array(
(int) 0 => object(stdClass) {
CardType => 'NOTSET'
CardNo => '6275980310291025129'
CardIssuer => ''
CardCreatorCode => 'ODB'
UpdateDateTime => '2011-09-20T10:47:33.625+01:00'
CreateDateTime => '2011-09-20T10:47:33.625+01:00'
ObjectState => 'NOTSET'