Skip to content

Instantly share code, notes, and snippets.

View fastjack's full-sized avatar

Martin Maciaszek fastjack

View GitHub Profile
device_tracker:
- platform: unifi
host: unifi.home.maciaszek.net
username: !secret unifi_username
password: !secret unifi_password
verify_ssl: false
track_new_devices: no
consider_home: 300
interval_seconds: 30
pi@time:~ $ ntpq -p
remote refid st t when poll reach delay offset jitter
=======================================================================================================
*SHM(1) .PPS. 0 l 20 64 377 0.0000 -0.1530 0.0183
xSHM(0) .GPS. 0 l 60 64 377 0.0000 -108.973 1.8303
@fastjack
fastjack / config.gateway.json
Created January 13, 2020 12:01
OpenVPN in Unifi
"openvpn": {
"vtun0": {
"encryption": "aes256",
"hash": "sha256",
"mode": "server",
"openvpn-option": [
"--keepalive 8 30",
"--comp-lzo",
"--duplicate-cn",
"--user nobody --group nogroup",
19-11-04 07:49:04 INFO (MainThread) [hassio.homeassistant] Update Home Assistant to version 0.101.2
19-11-04 07:49:04 INFO (SyncWorker_0) [hassio.docker.interface] Update image homeassistant/qemux86-64-homeassistant:0.100.2 to homeassistant/qemux86-64-homeassistant:0.101.2
19-11-04 07:49:04 INFO (SyncWorker_0) [hassio.docker.interface] Pull image homeassistant/qemux86-64-homeassistant tag 0.101.2.
19-11-04 07:50:21 INFO (SyncWorker_0) [hassio.docker.interface] Stop homeassistant application
19-11-04 07:51:23 INFO (SyncWorker_0) [hassio.docker.interface] Clean homeassistant application
19-11-04 07:51:25 INFO (SyncWorker_4) [hassio.docker.homeassistant] Start homeassistant homeassistant/qemux86-64-homeassistant with version 0.101.2
19-11-04 07:51:40 INFO (MainThread) [hassio.homeassistant] Home Assistant pip installation in progress
19-11-04 07:51:55 INFO (MainThread) [hassio.homeassistant] Home Assistant pip installation done
19-11-04 08:00:44 INFO (MainThread) [hassio.host.info] Update local host information
unifi:
image: fastjack/unifi:unstable
container_name: unifi
restart: unless-stopped
volumes:
- unifi_config:/config
environment:
PUID: '1001'
PGID: '1001'
ports:
@fastjack
fastjack / c128-mmu-vr.asm
Created May 4, 2019 16:13
Test for correct MMU's correct version register
BORDERCOLOR = $d020
SCREENCOLOR = $d021
DEBUGREG = $d7ff
* = $1c01
!word eol,0
!byte $9e, $37,$31,$38,$31, 0 ; SYS 7181
eol: !word 0
start:
Browsing for _arduino._tcp
DATE: ---Sun 01 Jul 2018---
20:42:43.160 ...STARTING...
Timestamp A/R Flags if Domain Service Type Instance Name
20:42:43.315 Add 3 5 local. _arduino._tcp. H801_9954D7
20:42:43.315 Add 2 5 local. _arduino._tcp. ESPURNA-2B13CA
sensor:
- platform: template
sensors:
nzbget_download_paused:
friendly_name: "Downloads angehalten"
icon_template: >-
{% if is_state('sensor.nzbget_download_paused', 'False') %}
mdi:play
{% else %}
mdi:pause
sensor.nzbget_download_paused:
homebridge_hidden: true
emulated_hue_hidden: true
icon_template: "{% if is_state('sensor.nzbget_download_paused', 'False') %}mdi:play{% else %}mdi:pause{% endif %}"
@fastjack
fastjack / Additional configuration for Telegraf
Last active December 4, 2022 13:14
Quick and dirty gateway metrics for telegraf on pfSense
[[inputs.exec]]
commands = ["/usr/local/libexec/telegraf/gateways.py"]
timeout = "5s"
data_format = "influx"