Skip to content

Instantly share code, notes, and snippets.

<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
@Fma965
Fma965 / 503.html
Last active March 25, 2024 07:43
HAProxy Custom Error Page (remove top 4 lines for non haproxy use)
HTTP/1.0 503 Service Unavailable
Cache-Control: no-cache
Connection: close
Content-Type: text/html
<html lang="en">
<head>
<title>Under maintenance</title>
<style>
@charset "utf-8";
@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;
}
@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 / 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-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;
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 / 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
;;
@Fma965
Fma965 / sever.cfg
Created August 3, 2015 13:45
bo1 server.cfg example
//////////////////////////////////////////////////
// SERVER NAME & COLORS //
//////////////////////////////////////////////////
// //
// ^1 Red //
// ^2 Green //
// ^3 Orange //
// ^4 Dark Blue //
// ^5 Light Blue //
// ^6 Pink //