Skip to content

Instantly share code, notes, and snippets.

View marcolivierarsenault's full-sized avatar

Marc-Olivier Arsenault marcolivierarsenault

View GitHub Profile
@r15ch13
r15ch13 / README.md
Last active January 9, 2023 04:36
Use smartplug with Octoprint PSU Control and Home Assistant

Use smartplug with Octoprint PSU Control and Home Assistant

This explains how to use any smartplug connected to Home Assistant with Octoprint PSU Control.

It's based on a comment by tht and a Tasmota sonoff thread in the Octoprint forum.

Installation

The installation consist of three simple steps: create a config file, copy the script and change the PSU Control settings

@pandafulmanda
pandafulmanda / Python3 Virtualenv Setup.md
Last active March 12, 2024 15:59 — forked from akszydelko/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3
@noscript
noscript / i915_317.patch
Last active November 9, 2015 13:12
i195 VGA arbitration patch for 3.16.0.4 in Debian 8.2 Jessie
diff -rupN linux-3.16.7-ckt11.old/drivers/gpu/drm/i915/i915_dma.c linux-3.16.7-ckt11/drivers/gpu/drm/i915/i915_dma.c
--- linux-3.16.7-ckt11.old/drivers/gpu/drm/i915/i915_dma.c 2014-10-05 17:23:04.000000000 -0200
+++ linux-3.16.7-ckt11/drivers/gpu/drm/i915/i915_dma.c 2014-10-08 13:25:35.261920170 -0200
@@ -1316,10 +1316,20 @@ static int i915_load_modeset_init(struct
* If we are a secondary display controller (!PCI_DISPLAY_CLASS_VGA),
* then we do not take part in VGA arbitration and the
* vga_client_register() fails with -ENODEV.
+ *
+ * NB. The set_decode callback here actually only works on GMCH
+ * devices, on newer HD devices we can only disable VGA MMIO space.
@zziuni
zziuni / stuns
Created September 18, 2012 08:05
STUN server list
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net