Skip to content

Instantly share code, notes, and snippets.

View Romanmir's full-sized avatar

Chris Penwell Romanmir

  • Pacific Northwest
View GitHub Profile
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
#! /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!");
@Romanmir
Romanmir / auto_check_config.yaml
Created October 19, 2022 22:20 — forked from mdegat01/auto_check_config.yaml
Auto Check Config package
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
@Romanmir
Romanmir / update_notifications.yaml
Created January 6, 2023 16:23 — forked from mdegat01/update_notifications.yaml
Update Notifications Automation Blueprint
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: >-