Skip to content

Instantly share code, notes, and snippets.

View SetDefaulDeviceOnConnection.xml
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="">
<Description>Stop annoying windows! i want to decide what stadart playback device i use.</Description>
matthenning /
Created December 9, 2022 12:39 — forked from LadySmith/
Synology DS920+ Plex hw transcoding fix
#!/usr/bin/env bash
# Check Plex iHD driver. If exists, delete. Should fix buffering on HW Transcoding.
file="/volume1/@appstore/Plex Media Server/lib/dri/"
filebackup="/volume1/@appstore/Plex Media Server/lib/dri/"
if [ -f "$file" ] ; then
echo "Stopping Plex"; echo;
synoservicectl --stop "pkgctl-Plex Media Server" ;
echo "Found iHD, deleting..."; echo;
View wip: Icinga check for Inkbird IBS-TH1 bluetooth sensors
from bluepy import btle
from bluepy.btle import BTLEException, Scanner, DefaultDelegate
import sys, getopt
# Argument 1: Mac Address
# Argument 2: BT Scan timeout in seconds (optional, default 8)
# Example: python3 50:51:a9:7d:94:3b 5
opts, args = getopt.getopt(sys.argv, "")
matthenning / userChrome.css
Created November 2, 2022 10:03
Tree Tab Style without header and native tab bar
View userChrome.css
.tabbrowser-tab {
visibility: collapse;
#navigator-toolbox {
background-color: #2b2a33 !important;
.titlebar-button {
height: 32px !important;
#nav-bar {
View libinput
# Configuration file for libinput-gestures.
# The default configuration file exists at /etc/libinput-gestures.conf
# but a user can create a personal custom configuration file at
# ~/.config/libinput-gestures.conf.
# Lines starting with '#' and blank lines are ignored. Currently
# "gesture" and "device" configuration keywords are supported as
# described below. The keyword can optionally be appended with a ":" (to
# maintain compatibility with original format configuration files).
View gist:ca4b2150ecd85ca288638c963f8e72ea
public class Punkt {
protected int x;
protected int y;
public Punkt(int x, int y) {
this.x = x;
this.y = y;
View gist:e6685f2ce4b533147abeec2a11f2fe8e
$albums = @()
$done = @()
$album_list = Invoke-WebRequest -Uri ""
$album_list.AllElements | Where {$_.href -like "album/*"} | %{
$id = ($_.href -split "/")[1]
Try {
$html = Invoke-WebRequest -Uri ("{0}" -f $id) -ErrorAction Stop
matthenning / gist:cf02e43ebab3b063ef8f391f937792e3
Created October 4, 2017 18:09
Kings Singers Tracks JSON Source
View gist:cf02e43ebab3b063ef8f391f937792e3
This file has been truncated, but you can view the full file.
"title": "10th anniversary concert",
"tracks": [
"num": 1,
"title": "La guerre (live) ",
"composers": [
"Clement Janequin",
"Philippe Verdelot"