Skip to content

Instantly share code, notes, and snippets.

View subutux's full-sized avatar

Stijn Van Campenhout subutux

  • dotArchie NV
  • Belgium
  • 07:13 (UTC -12:00)
  • X @subutux
View GitHub Profile
@subutux
subutux / gen.yaml
Last active February 12, 2024 20:30
Symfonisk Sound remote gen2 remote
blueprint:
# Media control via IKEA Symfonisk Gen2 - Shawsky April 2023 v1.52
# Updated May 2023 - Add group volume control
# Updated June 2023 - Resolve filtering issue where multiple devices are in use
# Updated August 2023 - Resolve a volume issue for media players with no group_memeber attribute
# Updated September 2023 - Further updates for group/non grouped behaviour / fix issue for volume hold for grouped/non grouped. Allow 100 volume steps.
# Volume changes partially based on https://gist.github.com/erkr/a437ebcb98a2b5ba2deebabd02f5ffae Eric Kreuwels
# and https://gist.github.com/alexwmaustin/2c25cfa1a0ade1ab9fc1ef0940289672 Alex Austin
name: Z2M - IKEA Symfonisk sound controller GEN2 for media
description:
// Enable debug prints
#define MY_DEBUG
// Enable and select radio type attached
#define MY_RADIO_NRF24
//#define MY_RADIO_RFM69
//#define MY_RS485
#include <SPI.h>
#include <MySensors.h>
@subutux
subutux / keybase.md
Created December 12, 2016 08:47
keybase.md

Keybase proof

I hereby claim:

  • I am subutux on github.
  • I am subutux (https://keybase.io/subutux) on keybase.
  • I have a public key whose fingerprint is 7B31 923A 456D 83D2 B0B2 9F3D 0941 1DE8 B117 9549

To claim this, I am signing this object:

@subutux
subutux / denonavr.py
Created November 8, 2016 11:26
A home assistant media player component for denon AVR-XXXX recievers
"""
Support for Denon AVR Receivers.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/media_player.denonavr/
"""
import logging
from datetime import timedelta
import voluptuous as vol
from homeassistant.components.media_player import (
@subutux
subutux / postlogin.sh
Created May 20, 2015 14:57
Alert dovecot imap users about them exceeding quotum using IMAP ALERT (compatible with outlook 2007-2013)
#!/bin/bash
#
# Author: Stijn Van Campenhout <stijn.vancampenhout@gmail.com>
#
# Calculate the percentage of the maildir quota using a mysql calculation.
# Compatible with dovecot & postfixadmin, using the quota2 format.
#
# Add this to the dovecot (2.x) configuration:
## /etc/dovecot/conf.d/10-master.conf
#service imap-postlogin {
@subutux
subutux / gnome_background_desktoppr.py
Created June 13, 2014 06:45
A python script to randomize your Gnome desktop background using desktoppr
#!/usr/bin/env python
import os,sys
import argparse
try:
import json
except ImportError:
import simplejson as json
import urllib2
from gi.repository import Gio
parser = argparse.ArgumentParser()
@subutux
subutux / README.md
Created June 6, 2014 08:48
Opsview boxcar notification method

Usage:

  • Place this file into /usr/local/nagios/libexec/notifications/

  • Create a new notification method in Opsview (Advanced > Notification methods > "+")

    command: send_boxcar_notitfication.sh

    contact variables: BOXCAR_API

  • Edit your contacts: fill the Boxcar api with your api key

  • set the notification method on some notification groups

@subutux
subutux / prettycron.js
Last active August 29, 2015 13:57 — forked from dunse/prettycron.js
////////////////////////////////////////////////////////////////////////////////////
// prettycron.js - Copyright (c) 2012 Pehr Johansson <pehr.l.johansson@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@subutux
subutux / build-rt3070-driver.sh
Last active December 17, 2015 18:19
Building the RT3070 kernel driver
#!/bin/bash
cd /usr/src
sudo wget https://github.com/raspberrypi/linux/archive/rpi-3.6.y.tar.gz
sudo tar xvfz rpi-3.6.y.tar.gz
sudo ln -s /usr/src/linux-rpi-3.6.y/ /lib/modules/3.6.11+/build
cd /lib/modules/3.6.11+/build
sudo make mrproper
sudo su
gzip -dc /proc/config.gz > .config
make modules_prepare