Quickly verify MQTT is up & listening via mosquitto_sub
:
# mosquitto_sub -t '$SYS/broker/uptime'
242 seconds
253 seconds
264 seconds
275 seconds
286 seconds
297 seconds
Quickly verify MQTT is up & listening via mosquitto_sub
:
# mosquitto_sub -t '$SYS/broker/uptime'
242 seconds
253 seconds
264 seconds
275 seconds
286 seconds
297 seconds
Please be sure you want this. I assume no liability for you doing this.
haos_generic-<arch>-<version>.img.xz
/dev/sdX
and run xzcat haos_generic-*.img.xz | dd of=/dev/sdX bs=4M conv=fsync
parted -l /dev/sdX
(choose to Ignore the warning) - you should see a list of hassos-*
partitionsreboot
At this point, you'll need to wait for the server to reboot and for homeassistant to become available.
A simple ping
will let you know when the server is up. After awhile, you should be able to access homeassistant via http://:8123/
Get the commit hash belonging to an Elixir release (i.e. 1.14.3 = 6730d669fb319411f8e411d4126f1f4067ef9231)
Install:
$ asdf install elixir ref:6730d669fb319411f8e411d4126f1f4067ef9231
$ asdf local elixir ref:6730d669fb319411f8e411d4126f1f4067ef9231
#SingleInstance Force | |
;;; | |
; Toggle on top + titlebar + transparency of window under mouse. | |
#j:: { | |
; WS_THICKFRAME (WS_BORDER + WS_DLGFRAME + WS_SIZEBOX) | |
WS_THICKFRAME := "0xC40000" | |
; Active mouse window | |
MouseGetPos(,, &ActiveWindow) |
/** Example of continuous scanning for BLE advertisements. | |
* This example will scan forever while consuming as few resources as possible | |
* and report all advertisments on the serial monitor. | |
* | |
* Created: on January 31 2021 | |
* Author: H2zero | |
* | |
*/ | |
#include "NimBLEDevice.h" |
Preferences > Extra board URLs: | |
https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls | |
(S+ -> Wemos D1_Mini) |
#!/usr/bin/env bash | |
# Reset Docker to a clean vanilla state. Will destroy all containers, images, networks, volumes, and cache. | |
[ $(docker ps | wc -l) -ne 1 ] && echo "Stopping all containers..." && docker stop $(docker ps | sed -n '1d;p' | awk -F" " '{print $1}') | |
[ $(docker ps -a | wc -l) -ne 1 ] && echo "Deleting all containers..." && docker rm $(docker ps -a | sed -n '1d;p' | awk -F" " '{print $1}') | |
[ $(docker images | wc -l) -ne 1 ] && echo "Deleting all images..." && docker image rm $(docker images | sed -n '1d;p' | awk -F" " '{print $3}') | |
echo "Pruning networks, volumes, and cache..." && docker system prune -a -f --volumes | |
echo "Docker is back to Vanilla... COMPLETE!" |
#!/usr/bin/env python3 | |
""" | |
Generate a random IPv6 address for a specified subnet | |
""" | |
from random import seed, getrandbits | |
from ipaddress import IPv6Network, IPv6Address | |
subnet = u'2a02:58:143:e00::/56' |
default_kernel_opts="nomodeset quiet rootfstype=ext4 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory consoleblank=120"
update-extlinux && reboot
curl -sfL https://get.k3s.io | INSTALL_k3S_EXEC='--disable servicelb --no-deploy traefik --flannel-backend=none --disable-network-policy' sh -