Skip to content

Instantly share code, notes, and snippets.

View Hypfer's full-sized avatar
🦆

Sören Beye Hypfer

🦆
View GitHub Profile
@Hypfer
Hypfer / tvheadendrespawner.sh
Created April 5, 2014 07:42
Tvheadend Respawner
#!/bin/bash
main() {
while :
do
inotifywait -q -q -e modify /var/log/syslog && bash ./tvheadendrespawner.sh core
done
}
core() {
@Hypfer
Hypfer / gist:38b3b276e1a0fea92c30
Last active August 29, 2015 14:26
IR Protocol Checksum
Never Changes Power/Hold Mode Temp Fan/Swing Parity?
1000100010001000100010001000100010001000 00100100 11000000 00000000 01000000 00000000000000000000000000000000 01111110
1000100010001000100010001000100010001000 00100100 11000000 00000000 01100000 00000000000000000000000000000000 01000001
1000100010001000100010001000100010001000 00100100 11000000 00000000 00100000 00000000000000000000000000000000 00000001
1000100010001000100010001000100010001000 00100100 11000000 10010000 00100000 00000000000000000000000000000000 10010001
1000100010001000100010001000100010001000 00100100 11000000 10010000 00110000 00000000000000000000000000000000 10001001
1000100010001000100010001000100010001000 00100100 11000000 11010000 01100000 00000000000000000000000000000000 10110001
1000100010001000100010001000100010001000 00100100 11000000 11010000 01000000 00000000000000000000000000000000 10010001
Arduino Logic capture from AC:
1000100010001000100010001000100010001000 00100100 11000000 00000000 01000000 00000000000000000000000000000000 01111110
blathijs capture TSOP4838:
11100010 00100010 00100010 00100010 00100010 00001001 00110000 00000000 00010000 00000000 00000000 00000000 00000000 00011111 10
@Hypfer
Hypfer / gist:7e648cd7d503da57744b
Created August 8, 2015 13:11
fan1,cool,no_hold,no_swing,power_on from 31 to 17 including 31 and 17
10001000 10001000 10001000 10001000 10001000 00100100 11000000 00000000 01000000 00000000 00000000 00000000 00000000 01111110
10001000 10001000 10001000 10001000 10001000 00100100 11000000 10000000 01000000 00000000 00000000 00000000 00000000 11111110
10001000 10001000 10001000 10001000 10001000 00100100 11000000 01000000 01000000 00000000 00000000 00000000 00000000 00000001
10001000 10001000 10001000 10001000 10001000 00100100 11000000 11000000 01000000 00000000 00000000 00000000 00000000 10000001
10001000 10001000 10001000 10001000 10001000 00100100 11000000 00100000 01000000 00000000 00000000 00000000 00000000 01000001
10001000 10001000 10001000 10001000 10001000 00100100 11000000 10100000 01000000 00000000 00000000 00000000 00000000 11000001
10001000 10001000 10001000 10001000 10001000 00100100 11000000 01100000 01000000 00000000 00000000 00000000 00000000 00100001
10001000 10001000 10001000 10001000 10001000 00100100 11000000 11100000 01000000 00000000 00000000 00000000 00000000 10100001
10001000
@Hypfer
Hypfer / gist:ebeebe15d132a1a873e7
Created August 8, 2015 13:17
fan1,cool,no_hold,no_swing,power_on from 31 to 17 including 31 and 17, switching on, 1 temp down, off, repeat
10001000 10001000 10001000 10001000 10001000 00100100 11000000 00000000 01000000 00000000 00000000 00000000 00000000 01111110
10001000 10001000 10001000 10001000 10001000 00100100 11000000 10000000 01000000 00000000 00000000 00000000 00000000 11111110
10001000 10001000 10001000 10001000 10001000 00000100 11000000 10000000 01000000 00000000 00000000 00000000 00000000 11011110
10001000 10001000 10001000 10001000 10001000 00100100 11000000 10000000 01000000 00000000 00000000 00000000 00000000 11111110
10001000 10001000 10001000 10001000 10001000 00100100 11000000 01000000 01000000 00000000 00000000 00000000 00000000 00000001
10001000 10001000 10001000 10001000 10001000 00000100 11000000 01000000 01000000 00000000 00000000 00000000 00000000 00111110
10001000 10001000 10001000 10001000 10001000 00100100 11000000 01000000 01000000 00000000 00000000 00000000 00000000 00000001
10001000 10001000 10001000 10001000 10001000 00100100 11000000 11000000 01000000 00000000 00000000 00000000 00000000 10000001
10001000
@Hypfer
Hypfer / vpn.md
Created November 20, 2016 19:48 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

Why not?

Because a VPN in this sense is just a glorified proxy. The VPN provider can see all your traffic, and do with it what they want - including logging.

@Hypfer
Hypfer / vmware-autostarts
Created December 4, 2016 00:06 — forked from tommybutler/vmware-autostarts
This LSB-compliant Linux boot init script lets you auto-start VMware virtual machines on a Linux host machine running VMware Workstation. Tested successfully on Debian 7 and assumed safe for any Ubuntu or Ubuntu-based distro as well. May need some minor tweaks before you can use it on CentOS or RHEL.To use this script, follow installation instru…
#!/usr/bin/env bash
### BEGIN INIT INFO
# Provides: vmwareautostart
# Required-Start: $vmware $network $syslog
# Required-Stop: $vmware $network $syslog
# X-Start-Before:
# X-Stop-After:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
@Hypfer
Hypfer / gist:a42c27549d77f34c145b1c7dd053487f
Created April 5, 2017 09:15 — forked from solenoid/gist:1372386
javascript ObjectId generator
var mongoObjectId = function () {
var timestamp = (new Date().getTime() / 1000 | 0).toString(16);
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() {
return (Math.random() * 16 | 0).toString(16);
}).toLowerCase();
};
@Hypfer
Hypfer / export.json
Created September 25, 2017 21:33
somewhat hackish node-red flow to set the color temperature via deconz
[
{
"id": "e74a5914.c69128",
"type": "interval",
"z": "7e4e4efe.436b7",
"name": "interval",
"interval": "5",
"onstart": true,
"msg": "{}",
"showstatus": false,
@Hypfer
Hypfer / ing_diba_keepalive.user.js
Last active September 14, 2019 18:05
Fixes the 5 minute PSD2 session timeout madness
// ==UserScript==
// @name ING DiBa Keepalive
// @namespace jockel
// @version 1.0
// @description Fixes the 5 minute PSD2 session timeout madness
// @match https://*.ing.de/*
// @grant GM_xmlhttpRequest
// @grant GM.xmlHttpRequest
// ==/UserScript==