Skip to content

Instantly share code, notes, and snippets.

View orangecoding's full-sized avatar
🐵
Live as if you were to die tomorrow. Learn as if you were to live forever.

Christian Kellner orangecoding

🐵
Live as if you were to die tomorrow. Learn as if you were to live forever.
View GitHub Profile
@orangecoding
orangecoding / Nightlight.ino
Last active January 17, 2021 09:52
Night light using an ESP 8266 and an Ardafruit NeoPixel Ring
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN D4
#define NUMPIXELS 13
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
#define DELAYVAL 500
@orangecoding
orangecoding / gist:5c06fc71eaee5d8dc6385abc5dea6730
Created January 5, 2022 17:45
Homebridge backup from Terminal
#!/bin/bash
#
# This script requires the "jq" package to be installed.
# Linux: sudo apt-get install jq
# macOS: brew install jq
#
USERNAME=YOUR_ADMIN_USERNAME
PASSWORD=YOUR_ADMIN_PASSWORD