Skip to content

Instantly share code, notes, and snippets.

View ctalkington's full-sized avatar

Chris Talkington ctalkington

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ctalkington on github.
  • I am ctalkington (https://keybase.io/ctalkington) on keybase.
  • I have a public key ASCX5Kq7AzpGKw26Dbyn4XkXAoNTo4jRi3rCS7XP0_IxIAo

To claim this, I am signing this object:

@ctalkington
ctalkington / bulb_75w_rgbw_qpw06.yaml
Last active November 23, 2021 12:24
Merkury A21 75W Bulb ESPHome Config (requires v1.14+)
esphome:
name: bulb_75w_rgbw_qpw06
platform: ESP8266
board: esp01_1m
wifi:
ssid: 'YOURWIFISSID'
password: 'YOURWIFIPASSWORD'
logger:
@ctalkington
ctalkington / main.yaml
Last active December 24, 2019 04:46
WLED GH Actions WIP
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
# pylint: disable=W0621
"""Asynchronous Python client for IPP."""
import asyncio
from pyipp import IPP
async def main():
"""Show example of connecting to your IPP print server."""
async with IPP("ipp://HP79EC40.local:631/ipp/printer") as ipp:
#!/bin/bash
if ! [ -x "$(command -v jq)" ]; then
printf "\x1B[31m[ERROR] jq is not installed.\x1B[0m\n"
exit 1
fi
if ! [ -x "$(command -v sed)" ]; then
printf "\x1B[31m[ERROR] sed is not installed (only GNU sed works).\x1B[0m\n"
exit 1