Skip to content

Instantly share code, notes, and snippets.

Rick van Hattem WoLpH

Block or report user

Report or block WoLpH

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
WoLpH / ibood.js
Created Jul 16, 2019
Show ibood prices for expired deals
View ibood.js
// ==UserScript==
// @name ibood old prices
// @namespace
// @version 0.1
// @description add prices to old/expired ibood deals
// @author You
// @match*
// @grant none
// ==/UserScript==
WoLpH / barman_exporter.conf
Last active Jul 11, 2019
Prometheus exporter for barman
View barman_exporter.conf
# vim: set ft=dosini:
# Supervisord config for the barman exporter
command=/usr/local/bin/env python3 /var/barman/
WoLpH / activetable.js
Last active Jul 4, 2019 — forked from stevesouders/activetable.js
ActiveTable is a bookmarklet that makes any table sortable. It also allows you to remove columns, and it remembers the removed columns for next time. Use alt+click to UNhide all columns (and clear memory). This version sorts numerically if possible and if that's not possible it puts the numbers first and letters after
View activetable.js
// ActiveTable - a bookmarklet to make tables sortable and editable
function init() {
var aHrows = getHrows();
var numHrows = aHrows.length;
var aHidden = getHiddenColumns();
ATpopup = document.createElement("div"); = "position: absolute; visibility: hidden; padding: 0; font-family: Arial; background-color: rgba(255, 255, 255, 0.9); border-radius: .5em; text-align: center; box-shadow: .05em .05em .5em #00C;";
View sonarr_with_websockets.nginx.conf
upstream sonarr {
server {
server_name sonarr;
include includes.d/restricted.conf;
include includes.d/ssl_server.conf;
include includes.d/proxy.conf;
WoLpH /
Last active Mar 3, 2019
This script emulates the Dreamscreen sidekick and displays the output on your screen. It requires a shell that supports full-rgb ansi. More info can be found here:
#!/usr/bin/env python
import enum
import types
import aioudp
import struct
import asyncio
import blessings
from datetime import datetime
WoLpH / hcsr04.ino
Created Dec 30, 2018
Simple arduino HC-SR04 (HCSR04) distance detection using interrupts for low latency measurements
View hcsr04.ino
#include <Arduino.h>
// Uses for sending on a regular interval
#include <TimerOne.h>
// ECHO pin, needs to be a pin that supports interrupts!
// TRIG pin, can be any output pin
// update interval, make sure to keep it above 20ms
View etc.yaml
# - alias: close curtains
# trigger:
# - event: sunset
# platform: sun
# condition: []
# action:
# - data:
# entity_id: cover.qubino_zmnhod1_flush_shutter_dc_level
# service: automation.turn_off
WoLpH /
Created Sep 19, 2018
Read all available data from file handle and return (with optional timeout)
def read(fh, timeout=0):
output = []
while[fh], [], [], timeout)[0]:
return ''.join(output)
WoLpH / sj1221.ino
Created Apr 2, 2018
SJ1221 led strip test
View sj1221.ino
/* vim: ts=8
Example code for the SJ1221 control protocol
Based on:
// Change this to be at least as long as your pixel string (too long will work fine, just be a little slower)
#define PIXELS 96*11 // Number of pixels in the string
// color multiplier since we've got 0-4096 instead of 0-256
exec <"$0" || exit; read v; read v; exec /usr/bin/osascript - "$@"; exit
-- the above is some shell trickery that lets us write the rest of
-- the file in plain applescript
-- Usage:
-- For a simple reload and nothing else:
-- # sh
-- For a reload with activating a different app after (iTerm in this case):
-- # sh iTerm
You can’t perform that action at this time.