This file contains 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
interesting Bashrc options | |
# don't put duplicate lines or lines starting with space in the history. | |
# See bash(1) for more options | |
HISTCONTROL=erasedups | |
HISTIGNORE="ls:exit" | |
export HISTTIMEFORMAT="%d/%m/%y %T " | |
# append to the history file, don't overwrite it | |
shopt -s histappend |
This file contains 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
#! /usr/bin/env node | |
const express = require('express') | |
const app = express() | |
const port = 3000 | |
const response_text = 'Hello World!\nAlso more text here for testing\nAlso different text for lookbehind\n' | |
app.all("*", function (req, resp, next) { | |
console.log("Got request!"); |
This file contains 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
automation: | |
id: cb7d0e035b94403db6b08f7263584b51_config_check_update | |
alias: Run config check on change | |
description: Run a config check when config is changed and reload automations when blueprints change | |
max_exceeded: silent | |
trigger: | |
- id: file_change | |
platform: event | |
event_type: folder_watcher | |
- id: reload |
This file contains 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
blueprint: | |
name: Update notifications | |
description: Send notifications for new updates and install or skip on action | |
homeassistant: | |
min_version: '2022.4.0' | |
domain: automation | |
input: | |
update_entities: | |
name: Update entities | |
description: >- |