IMPORTANT: Backup your nginx site configs (usually under /etc/nginx/sites-available
)!
Remove old nginx incl. nginx-common:
apt-get autoremove --purge nginx nginx-common
blueprint: | |
name: Zigbee2Mqtt Hue Dimmer Switch control v3 | |
description: '' | |
domain: automation | |
input: | |
dimmer_action: | |
name: Dimmer MQTT topic | |
description: 'type in your Dimmer MQTT topic (i.e. zigbee2mqtt/Dimmer/action)' | |
selector: | |
text: |
blueprint: | |
name: Zigbee2MQTT - Philips Hue Tap dial switch (8719514440937/8719514440999) actions | |
description: > | |
Define actions your Philips Hue Tap dial switch using Zigbee2MQTT. | |
For your button entity, choose the right sensor with your button name and the entity id which ends with '_action', e.g. 'sensor.bedroom_bed_tap_dial_switch_action' | |
domain: automation | |
input: | |
button_sensor: | |
name: Philips Hue Tap dial switch sensor entity | |
description: Sensor for Philips Hue Tap dial switch to use (Use sensor with entity_id ends with _action) |
#!/bin/bash | |
# full path to the telegraf executable in the jail it was installed in | |
TELEGRAF_BIN='/mnt/tank0/jails/telegraf-test/usr/local/bin/telegraf' | |
# dir for storing the pid, config, and log files | |
BASE_DIR='/mnt/tank0/home/aheadley' | |
if [ -f $BASE_DIR/telegraf.pid ] && kill -0 $(cat $BASE_DIR/telegraf.pid) &>/dev/null; then | |
# don't start it again if it's already running | |
echo "Telegraf running ($(cat $BASE_DIR/telegraf.pid))..." |
const bunyan = require('bunyan'); | |
const loggerWithoutSerializers = bunyan.createLogger({name: "w/o-srlzrs"}); | |
loggerWithoutSerializers.info('Logging without serializers'); | |
try { | |
throw new Error('Hiya buddy'); | |
} catch (err) { | |
loggerWithoutSerializers.error({err}, 'Logging approach #1'); |
services: | |
myservice: | |
volumes: npm-cache:/root/.npm | |
command: npm run install-start | |
volumes: | |
npm-cache: | |
external: false |
/** | |
* Filters an array of objects using custom predicates. | |
* | |
* @param {Array} array: the array to filter | |
* @param {Object} filters: an object with the filter criteria | |
* @return {Array} | |
*/ | |
function filterArray(array, filters) { | |
const filterKeys = Object.keys(filters); | |
return array.filter(item => { |
// ************** Instructions for connecting to the LiveCoding chatrooms from a 3rd party application. **************** | |
Step 1a (Ubuntu/ any OS with aptitude (aka apt-get)) : | |
sudo apt-add-repository ppa:rsrchboy/profanity && sudo apt-get update | |
apt-get install profanity | |
-- | |
Step 1b (OSX w/ homebrew): | |
$ brew install profanity | |
-------- |