This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Raspberry PI OS config.toml | |
# This file is used for the initial setup of the system on the first boot, if | |
# it's s present in the boot partition of the installation. | |
# | |
# This file is loaded by firstboot, parsed by init_config and ends up | |
# as several calls to imager_custom. | |
# The example below has all current fields. | |
# | |
# References: | |
# - https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/master/usr/lib/raspberrypi-sys-mods/firstboot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sensor: | |
- platform: rest | |
name: luftdaten | |
resource: http://192.168.1.149/data.json | |
scan_interval: 100 | |
json_attributes: | |
- sensordatavalues | |
value_template: '{{ value_json.age }}' | |
- platform: template | |
sensors: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# References: | |
# | |
# https://cinhtau.net/2016/12/09/disable-apt-auto-update-and-upgrade/ | |
# https://unix.stackexchange.com/questions/315502/how-to-disable-apt-daily-service-on-ubuntu-cloud-vm-image | |
# https://askubuntu.com/questions/824718/ubuntu-16-04-unattended-upgrades-runs-at-random-times/831206 | |
apt-get -y purge update-notifier-common ubuntu-release-upgrader-core landscape-common unattended-upgrades | |
systemctl kill --kill-who=all apt-daily.service | |
systemctl kill --kill-who=all apt-daily-upgrade.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @ClarionDate INT = 47563 | |
DECLARE @SqlDateTime DATETIME | |
-- Convert the clarion DATE into and SQL DateTime | |
SET @SqlDateTime = DateAdd(day, @ClarionDate - 4, '1801-01-01') | |
SELECT @SqlDateTime AS 'SQL Date Time' | |
-- Now convert it back from and SQL DateTime to a Clarion Date | |
SET @ClarionDate = DateDiff(day, DateAdd(day, -4, '1801-01-01'), @SqlDateTime) |