Skip to content

Instantly share code, notes, and snippets.

View SetDefaulDeviceOnConnection.xml
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2023-01-18T18:19:11.4118961</Date>
<Author>NULL234\null234</Author>
<URI>\SetDefaulDeviceOnConnection</URI>
<Description>Stop annoying windows! i want to decide what stadart playback device i use.</Description>
</RegistrationInfo>
<Triggers>
<EventTrigger>
@matthenning
matthenning / plex_ihd_remove.sh
Created December 9, 2022 12:39 — forked from LadySmith/plex_ihd_remove.sh
Synology DS920+ Plex hw transcoding fix
View plex_ihd_remove.sh
#!/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/iHD_drv_video.so"
filebackup="/volume1/@appstore/Plex Media Server/lib/dri/iHD_drv_video.so.bak"
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 check_inkbird_ibsth1.py 50:51:a9:7d:94:3b 5
opts, args = getopt.getopt(sys.argv, "")
@matthenning
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 "http://www.kingssing.de/album-check.php"
$album_list.AllElements | Where {$_.href -like "album/*"} | %{
$id = ($_.href -split "/")[1]
Try {
$html = Invoke-WebRequest -Uri ("http://www.kingssing.de/album/{0}" -f $id) -ErrorAction Stop
}
@matthenning
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"