Documentation based on the ATC1441 BLE E-Paper Uploader (source on Github) and testing with a 2.9" Black/White/Red epaper display.
- Primary Service
- Short UUID
0xfef0
- Short UUID
- Long UUID
0000fef0-0000-1000-8000-00805f9b34fb
Documentation based on the ATC1441 BLE E-Paper Uploader (source on Github) and testing with a 2.9" Black/White/Red epaper display.
0xfef00000fef0-0000-1000-8000-00805f9b34fb| #!/bin/sh | |
| # | |
| # Check on "running" status of critical Docker containers | |
| # and restart them if they are not running. | |
| # | |
| # This is necessary because after a hard host machine reboot, many Docker containers will | |
| # will not start cleanly. Since Docker restart policies and healthchecks only take effect | |
| # once a container has successully started up once, these failed containers will never | |
| # start. |
| #!/bin/bash | |
| # via https://stackoverflow.com/a/53409127 | |
| dockerName="${1}" | |
| hostCommandLine="${@:2}" | |
| #nsenter -n -t "$(docker inspect --format {{.State.Pid}} "${dockerName}")" "${@:2}" | |
| nsenter -n -t "$(docker inspect --format {{.State.Pid}} "${dockerName}")" ${hostCommandLine[@]} |
| #!/bin/bash | |
| # set path to directory holding docker-compose.yaml | |
| #dockerComposeRoot= | |
| if [ -z "$dockerComposeRoot" ]; then | |
| echo "ERROR: Set dockerComposeRoot before calling $0" >&2 | |
| exit 1 | |
| fi |
| #!/bin/bash | |
| # https://www.eevblog.com/forum/thermal-imaging/infiray-and-their-p2-pro-discussion/200/ | |
| # https://superuser.com/questions/1009969/how-to-extract-a-frame-out-of-a-video-using-ffmpeg | |
| # https://stackoverflow.com/questions/37960828/webcam-streaming-from-mac-using-ffmpeg | |
| # | |
| # Selected pixel format (yuv420p) is not supported by the input device. | |
| #[avfoundation @ 0x7f961cd08b40] Supported pixel formats: | |
| #[avfoundation @ 0x7f961cd08b40] uyvy422 | |
| #[avfoundation @ 0x7f961cd08b40] yuyv422 |
| # | |
| # Reverse proxy config for Ruckus Unleashed controllers | |
| # | |
| # Requirements: | |
| # | |
| # - DNS entries for all unleashed<IPv4 last octet of controllers>.example.com | |
| # - DNS entry for unleashed.example.com | |
| # - (DNS entries to point to Nginx reverse proxy) | |
| # - Wildcard TLS cert on reverse proxy (or SAN cert covering all above mentioned names) | |
| # |
| #!/bin/bash | |
| cat <<EOF > req.template | |
| [req] | |
| #default_bits = 2048 | |
| distinguished_name = dn | |
| prompt = no | |
| #req_extensions = req_ext | |
| [dn] |
| #!/bin/sh | |
| # https://tqdev.com/2022-luks-with-usb-unlock | |
| # | |
| # Script to unlock Ubuntu LUKS encrypted volume from initramfs during boot using | |
| # a keyfile stored on a USB thumb drive with fallback to manual passphrase entry. | |
| # | |
| # Runs in Busybox shell environment in initramfs | |
| # After updates to this script or crypttab, update initramfs: | |
| # |
| ''' | |
| Script for converting GetPocket.com exported HTML to CSV | |
| Export data via https://getpocket.com/export | |
| ''' | |
| import csv | |
| import sys | |
| import xml.etree.ElementTree as ET | |
| def main(): |
Via Iwrin-Hall/uniform sum distribution.
μ = n / 2, σ = sqrt(n / 12)
where n = # of summed uniform U(0, 1) random variables
Scale and shift Irwin-Hall to provide μ and σ as needed.