-
diskutil list diskutil unmountDisk /dev/disk<#>
sudo dd bs=1m if= of=/dev/rdisk<#> conv=sync
diskutil list
diskutil unmountDisk /dev/disk<#>
sudo dd bs=1m if= of=/dev/rdisk<#> conv=sync
Stream audio to any Sonos component via AirPlay using a Raspberry Pi (Model B, Raspbian Jessie) and the following software:
# Time Series Forecasting in R | |
## Example Datasets | |
# R Datasets package (e.g. AirPassengers, austres) | |
# https://stat.ethz.ch/R-manual/R-devel/library/datasets/html/00Index.html | |
# Census Time Series | |
# https://www.census.gov/econ/currentdata/dbsearch | |
# Data used for this demo: |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> | |
<title></title> | |
<style> | |
html, body, #viewDiv { | |
padding: 0; | |
margin: 0; |
from functools import reduce | |
import numpy as np | |
def mor(x): | |
"""x: iterable of np.array.""" | |
return reduce(np.logical_or, x) | |
def mand(x): | |
"""x: iterable of np.array.""" | |
return reduce(np.logical_and, x) |
# Amcrest API | |
## change password | |
http://<server>/cgi-bin/userManager.cgi?action=modifyPassword&name=<username>&pwd=<newPwd>&pwdOld=<oldPwd> | |
## take snapshot | |
http://<server>/cgi-bin/snapshot.cgi |
# installs home assistant core on raspberry pi | |
# | |
# source: https://www.home-assistant.io/docs/installation/raspberry-pi/ | |
# | |
# pre-requisite | |
# install Raspberry PI OS | |
# ssh into pi clone this script and execute | |
sudo apt-get update | |
sudo apt-get upgrade -y |