I hereby claim:
- I am samj on github.
- I am samj (https://keybase.io/samj) on keybase.
- I have a public key ASBDf_aG6MdbtOwsHS8CU8SoUNYowR8YZaPQgnTND3NFzQo
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
import subprocess | |
import re | |
import os | |
def get_battery_health(): | |
# Run the system_profiler command to get battery information | |
result = subprocess.run(["/usr/sbin/system_profiler", "SPPowerDataType"], capture_output=True, text=True) | |
output = result.stdout |
blueprint: | |
name: Set door codes webhook | |
description: > | |
Webhook that sets a door code slot on multiple lock entities using set_usercode. | |
IMPORTANT: When setting up this automation, click the gear icon beside the Webhook ID | |
to choose whether the webhook is 'Only accessible from the local network'. | |
domain: automation | |
input: | |
secret_token: | |
name: Secret Token |
#!/bin/bash | |
# Set your vault ID and item ID | |
ACCOUNT_ID="ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
VAULT_ID="abcdefghijklmnopqrstuvwxyz" | |
ITEM_ID="abcdefghijklmnopqrstuvwxyz" | |
# Authenticate with 1Password (if not already authenticated) | |
# Retrieve the passphrase from 1Password |
#!/bin/bash | |
# gpg pinentry protocol implementation for 1Password | |
# expects gpg passphrase to be the password of a login item | |
# with username containing the gpg key id (eg 188E5DC27A54FA25) | |
# and a 'gpg-key' tag | |
# | |
# add to ~/.gnupg/gpg-agent.conf: | |
# pinentry-program /path/to/gpg-pinentry-1password.sh |
#!/bin/sh | |
CONF=/etc/config/qpkg.conf | |
SOCKET=/tmp/tailscale/tailscaled.sock | |
QPKG_NAME="Tailscale" | |
QPKG_ROOT=`/sbin/getcfg ${QPKG_NAME} Install_Path -f ${CONF}` | |
QPKG_PORT=`/sbin/getcfg ${QPKG_NAME} Service_Port -f ${CONF}` | |
export QNAP_QPKG=${QPKG_NAME} | |
set -e | |
case "$1" in |
I hereby claim:
To claim this, I am signing this object: