Skip to content

Instantly share code, notes, and snippets.

@eaxsi
eaxsi / update-do-dns-A-AAAA.sh
Last active October 18, 2024 06:27 — forked from V1ncNet/update-do-dns.sh
Update a DNS record dynamically on DigitalOcean with a Shell Script
#!/bin/bash
#########################################################################
# #
# DNS A & AAAA Record Updater #
# #
# Purpose: Update DNS A and AAAA Records on DigitalOcean via the API #
# #
# Description: Modified version of original update-do-dns.sh #
# https://gist.github.com/V1ncNet/cc7615c6b6bde7248d6c5bc9e0335d6d #

Ubiquiti UVC G3 standalone setting bug

When resetting the camera, the setup wizard asks if the camera is set to NVR or Standalone mode. If standalone mode is selected the setting is not stored and the camera is operating in the NVR-mode. This can not be changed from the web UI after the initial setup. This is how I managed to get the camera to standalone mode.

  1. Connect to the camera via SSH
  2. Edit configuration file /tmp/system.cfg and change parameter device.managed_mode from 1 to 0
  3. Save file
  4. Apply settings with command $cfgmtd -f /tmp/system.cfg -w
@eaxsi
eaxsi / Ikea_trådfri_batteries.md
Last active March 12, 2024 16:18
IKEA Trådfri battery types

IKEA Trådfri battery types

Remote type Number of batteries Battery type
ON/OFF Switch(E1743) 1 CR2032
Shortcut button(E1812) 1 CR2032
Remote(E1810) 1 CR2032
Motion sensor(E1745) 2 CR2032
Wireless dimmer(203.478.30) 1 CR2032