# Replace 192.168.1.100 with your camera's IP
sudo tcpdump -i any -s 0 -w onvif_capture.pcap host 192.168.1.100
https://www.reddit.com/r/WLED/comments/ow57d7/govee_lights_mod_for_wled_ws2811/
https://wled.discourse.group/t/ws2811-led-strip-every-second-led-is-white-only/9355/12
color order: RGB
- black wire = ground
- red wire = positive
- white wire = data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Send actionable notifications for Android with Camera Snapshot | |
description: > | |
Send actionable notifications to an Android device. Customized from vorion's blueprint. | |
Changes | |
- Remove notify_device integration requirement to allow notify groups to be used. | |
- Removed trigger_entity domain input_boolean requirement. Removed reset of input_boolean from actions. (For use in detecting doorbell rings from sensor) | |
- Added camera snapshot for doorbell capture (required). | |
For each action, you can open an URL, an application on the device or load a lovelace view/dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Formats the given Date and returns map with format string parts. | |
const makeTimeFormatMap = function(date) { | |
const tz = Intl.DateTimeFormat().resolvedOptions().locale; | |
const dateTimeFormat = new Intl.DateTimeFormat(tz, { | |
month: 'short', | |
day: 'numeric', | |
weekday: 'short', | |
hour: 'numeric', | |
minute: 'numeric', | |
hour12: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
DICE_SIDES = 6 | |
distribution = [0] * DICE_SIDES | |
for d1 in range(1, DICE_SIDES + 1): | |
for d2 in range(1, DICE_SIDES + 1): | |
delta = abs(d1 - d2) | |
distribution[delta] += 1 | |
distribution = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Initialize git and git-annex | |
$ mkdir annex-gcs-test | |
$ cd annex-gcs-test/ | |
$ git init | |
Initialized empty Git repository in /Users/jterrace/annex-gcs-test/.git/ | |
$ git annex init "my machine" | |
init my machine ok | |
(Recording state in git...) | |
# Set up AWS credentials |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
from matplotlib import rc | |
rc('text', usetex=True) | |
rc('font', family='sans-serif') | |
rc('font', size='16') | |
# source: http://download.broadband.gov/plan/fcc-omnibus-broadband-initiative-(obi)-technical-paper-broadband-performance.pdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Import this module to make python drop to the debugger | |
when an undhandled exception is raised. | |
Original script from: | |
http://code.activestate.com/recipes/65287/ | |
""" | |
import sys | |
__old_excepthook__ = sys.excepthook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XVFB=/usr/bin/Xvfb | |
XVFBARGS=":1 -screen 0 1024x768x24 -ac +extension GLX +render -noreset" | |
PIDFILE=/var/run/xvfb.pid | |
case "$1" in | |
start) | |
echo -n "Starting virtual X frame buffer: Xvfb" | |
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $XVFB -- $XVFBARGS | |
echo "." | |
;; | |
stop) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileoverview | |
* Registers a language handler for LLVM. | |
* | |
* | |
* To use, include prettify.js and this file in your HTML page. | |
* Then put your code in an HTML tag like | |
* <pre class="prettyprint lang-llvm">(my LLVM code)</pre> | |
* | |
* |
NewerOlder