Skip to content

Instantly share code, notes, and snippets.

View jfisbein's full-sized avatar

Joan jfisbein

View GitHub Profile
{"name":"renovate","hostname":"runner-56hejecv-project-1504-concurrent-1-cmizlqdb","pid":57,"level":20,"logContext":"g1iNY8lCdTyz7ZbFpS_GJ","config":{"hostRules":[{"hostType":"maven","matchHost":"https://clarity-913932804865.d.codeartifact.eu-central-1.amazonaws.com/maven/java/","username":"aws","password":"***********"},{"hostType":"pypi","matchHost":"clarity-913932804865.d.codeartifact.eu-central-1.amazonaws.com","username":"aws","password":"***********"},{"hostType":"npm","matchHost":"clarity-913932804865.d.codeartifact.eu-central-1.amazonaws.com","token":"***********"},{"hostType":"docker","matchHost":"docker.io","username":"claritybot","password":"***********"},{"hostType":"docker","matchHost":"913932804865.dkr.ecr.eu-central-1.amazonaws.com","username":"AKIA5JSVD4MAT4D7FS6I","password":"***********"}],"customEnvVariables":{"CODEARTIFACT_AUTH_TOKEN":"eyJ2ZXIiOjEsImlzdSI6MTcwNjY5ODE2NCwiZW5jIjoiQTEyOEdDTSIsInRhZyI6IlB5OXdxUGxUblJYMk5xWUl6OFlGc0EiLCJleHAiOjE3MDY3NDEzNjQsImFsZyI6IkExMjhHQ01LVyIsIml2IjoiRS1V
blueprint:
name: Calibrate TRV using external sensor
description: Calibrate radiator TRV temperature sensor using an external temperature sensor.
domain: automation
input:
external_temperature_sensor:
name: External Temperature Sensor
description: Temperature sensor with correct temperature, used to calibrate TRV one.
selector:
entity:
blueprint:
name: Low moisture level detection & notification for all plant sensors
description: Regularly test all plant sensors with 'moisture' crossing under their
threshold.
domain: automation
input:
time:
name: Time to test on
description: Test is run at configured time
default: '10:00:00'
@jfisbein
jfisbein / fritzbox-cert-update.sh
Last active February 1, 2020 18:15 — forked from wikrie/fritzbox-cert-update.sh
Fritzbox Fritz!Box AVM SSL Letsencrypt automatically update
#!/bin/bash
MIN_EXPECTED_ARGS=4
if [ $# -lt $MIN_EXPECTED_ARGS ]; then
echo "Script to update the FritzBox SSL certificate"
echo ""
echo "Expected at least ${MIN_EXPECTED_ARGS} args"
echo ""
echo "Usage: $(basename "${0}") {username} {password} {cert-key-file} {cert-fullchain-file} [cert-password] [fritzbox-host]"
echo " - [cert-password] only needed if the {cert-key-file} is protected by a password"
@jfisbein
jfisbein / portainer.sh
Last active December 28, 2021 18:18
Simple script to Start, Stop an Update Portainer running in Docker under Linux and OS X
#!/usr/bin/env bash
CONTAINER_NAME="portainer"
IMAGE_NAME="portainer/portainer-ce"
PORT=9000
DATA_DIR="/opt/portainer/data"
function container-exist() {
local CONTAINER_ID=${1}
docker inspect "${CONTAINER_ID}" &> /dev/null
@jfisbein
jfisbein / install-tvheadend.sh
Last active May 4, 2019 18:45
How to install tvheadend in raspbian
#!/bin/bash
set -e
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
apt-get -y install coreutils wget apt-transport-https lsb-release ca-certificates
@jfisbein
jfisbein / install-oscam.sh
Last active April 27, 2023 23:33
install and update oscam on raspbian
#!/bin/bash
set -e
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
function install() {
041c76c588a00e4bd7a459f49d4b1aba17407d1bd7f45a096277a84842c1e40e4210968d91c557ccb1c0746182e8dc3311fd1ff09a159fdb49073eb5125f37ec3b
@jfisbein
jfisbein / update-fritzbox-ssl.sh
Last active April 30, 2017 11:27
Script to update FritzBox ssl certificate
#!/bin/bash
FB_URL=""
SID=""
SID_FILE="/tmp/fb_sid"
function init() {
FB_URL="$1"
if [ ! -f $SID_FILE ]; then
@jfisbein
jfisbein / loteria.sh
Last active December 22, 2023 12:32
Script para chequear numeros loteria de navidad usando api de El Pais
#!/usr/bin/env bash
# Script to check Spanish Christmas Lottery
# more info: https://servicios.elpais.com/sorteos/loteria-navidad/api/
AUTO_RELOAD="120" # seconds
declare -A mainPrizes
mainPrizes['numero1']='1er Premio'
mainPrizes['numero2']='2º Premio'