Skip to content

Instantly share code, notes, and snippets.

From 53fe87d9f3af7325418f37ae2e673732a013b0c6 Mon Sep 17 00:00:00 2001
From: root <root@CY-HEADLESS.(none)>
Date: Sun, 12 Jul 2015 21:35:51 +0100
Subject: [PATCH 1/1] headless
---
xbmc/AppParamParser.cpp | 2 ++
xbmc/Application.cpp | 52 +++++++++++++++++++----------------
xbmc/Application.h | 19 ++++++++++---
xbmc/guilib/GUIDialog.cpp | 4 +--
@Fma965
Fma965 / 01-avr-control.power
Created October 26, 2015 21:56
Openelec Control AVR when suspend/resume. /storage/.config/sleep.d/ (don't forget to chmod +x it)
#!/bin/sh
case "$1" in
pre)
# Set to Server HDZ Input
echo 34ZEA | telnet 192.168.2.12 8102
# Turn AVR off
echo PF | telnet 192.168.2.12 8102
# Turn HDZ off
echo ZEF | telnet 192.168.2.12 8102
;;
Private Sub kHook_KeyDown(ByVal sender As Object, ByVal e As WindowsHookLib.KeyboardEventArgs) Handles kHook.KeyDown
If e.KeyCode = Keys.VolumeUp And Control.ModifierKeys = Keys.Control = False Then
e.Handled = True
ShowForm.IsBackground = True
ShowForm.Start()
SendCommands("VU")
ElseIf e.KeyCode = Keys.VolumeDown And Control.ModifierKeys = Keys.Control = False Then
e.Handled = True
SendCommands("VD")
ElseIf e.KeyCode = Keys.VolumeMute And Control.ModifierKeys = Keys.Control = False Then
@Fma965
Fma965 / auth-basic.conf
Created January 11, 2016 18:58 — forked from surrealchemist/auth-basic.conf
Adding "port_in_redirect off;" which fixes the problem caused when your router is forwarding from a different port. This stops nginx from adding the port back in which is needed in a couple cases.
auth_basic "Restricted";
auth_basic_user_file /usr/local/etc/nginx/htpasswd;
@Fma965
Fma965 / youtubetvads.txt
Created January 8, 2018 21:25
google youtube tv ads
0.0.0.0 s0.2mdn.net
0.0.0.0 googleads.g.doubleclick.net
0.0.0.0 files.adform.net
0.0.0.0 secure-ds.serving-sys.com
0.0.0.0 ads.youtube.com
0.0.0.0 s0.2mdn.net
0.0.0.0 s1.2mdn.net
0.0.0.0 pubads.g.doubleclick.net
0.0.0.0 static.doubleclick.net
@Fma965
Fma965 / auth.conf
Last active January 10, 2018 21:41
Cloud Media Server Nginx Config
satisfy any;
auth_basic "Failsafe Authentication";
auth_basic_user_file /config/nginx/htpasswd;
auth_request /auth-user;
@Fma965
Fma965 / homepage-extra.html
Created January 16, 2018 20:04
Organizr Homepage Extras
<style>
.flex {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
background: transparent;
margin-top:10px;
box-shadow: none !important;
}
pcie_acs_override=downstream,multifunction intel_iommu=on iommu=pt rd.driver.pre=vfio-pci rd.driver.blacklist=nvme
<style>
.flex {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
background: transparent;
margin-top:10px;
box-shadow: none !important;
}
@Fma965
Fma965 / gist:997952980ec27cb6e739a24050561c47
Created May 10, 2018 14:37
custom html 2 column organizr v2
<style>
.overflowhider {
height: 200px;
overflow: hidden;
}
#discordwidget {
left: -10px;
position: relative;
height: calc(200px + 230px);