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:
| 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: |
| import locale | |
| import struct | |
| def __readLink(path): | |
| # http://stackoverflow.com/a/28952464/1119602 | |
| with open(path, 'rb') as stream: | |
| content = stream.read() | |
| # skip first 20 bytes (HeaderSize and LinkCLSID) | |
| # read the LinkFlags structure (4 bytes) | |
| lflags = struct.unpack('I', content[0x14:0x18])[0] |
| // 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> |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # | |
| # Author: Stijn Van Campenhout <[email protected]> | |
| # | |
| # 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 { |
| #!/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() |
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
| //////////////////////////////////////////////////////////////////////////////////// | |
| // prettycron.js - Copyright (c) 2012 Pehr Johansson <[email protected]> | |
| // | |
| // 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 |
| #!/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 |