Skip to content

Instantly share code, notes, and snippets.

View jurgen-kluft's full-sized avatar
🎯
Focusing

Jur93n jurgen-kluft

🎯
Focusing
View GitHub Profile
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include <string.h>
#define streq(a, b) (!strcmp((a), (b)))
#ifndef __USE_GNU
#define __USE_GNU
@jurgen-kluft
jurgen-kluft / Reset HUE light
Created November 23, 2019 03:49
How to reset a hue light
One easy way i know of works when you have an (Amazon) Echo Dot.
In the Alexa APP (iOS) 'What type of device are you setting up?' you press the (?) in the upper right corner of the screen.
There you scroll down until you see 'Where can i find instructions for putting my Zigbee device into pairing mode?'
Press the 'here', it will take you to another screen with information. Find 'RESET PHILIPS HUE LIGHT', press it.
Now you are on a page where you can enter the serial number of the HUE light and 'Continue' to reset it.
The serial number of a HUE light you can find on the side of the HUE bulb, something like: 7813D0
@jurgen-kluft
jurgen-kluft / .clang-format
Last active May 14, 2024 11:31
clang format - c++
---
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveMacros: true
AlignConsecutiveAssignments: true
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: true
AlignEscapedNewlines: Left

Keybase proof

I hereby claim:

  • I am jurgen-kluft on github.
  • I am jur93n (https://keybase.io/jur93n) on keybase.
  • I have a public key whose fingerprint is 7735 D00D 3765 68FC B6EC 58B1 1003 4713 3604 75A3

To claim this, I am signing this object: