Skip to content

Instantly share code, notes, and snippets.

@barchero
barchero / core_integration_commit
Last active April 11, 2026 14:18 — forked from bdraco/core_integration_pr
Install HA Core commit as custom component
#!/bin/bash
# curl -o- -L https://gist.githubusercontent.com/barchero/575d352e971d0875090880e5e00d2e0c/raw/core_integration_commit | bash /dev/stdin -d domain -c 12345
while getopts d:c: flag
do
case "${flag}" in
d) domain="${OPTARG}";;
c) commit_hash="${OPTARG}";;
esac
done
/**
* Take two objects T and U and create the new one with uniq keys for T a U objectI
* helper generic for `DeepMergeTwoTypes`
*/
type GetObjDifferentKeys<T, U> = Omit<T, keyof U> & Omit<U, keyof T>
/**
* Take two objects T and U and create the new one with the same objects keys