Skip to content

Instantly share code, notes, and snippets.

@kmdm
kmdm / esphome_ble_config.yaml
Last active February 7, 2024 09:53
esphome, esp32 ble tracker and Home Assistant mqtt_room sensors
# MQTT broker configuration
mqtt:
broker: !secret mqtt_broker
username: !secret mqtt_username
password: !secret mqtt_password
discovery: False # Only if you use the HA API usually
id: mqtt_client
# Define the room for this ESP32 node
substitutions:
@bryanbarnard
bryanbarnard / requests_create_incident_sn.py
Last active July 22, 2022 18:20
Sample Requests Python ServiceNow JSONv2 - Create an Incident
import json
import requests
from requests.auth import HTTPBasicAuth
# using local http proxy to log requests and responses
proxies = {
"http": "http://127.0.0.1:8888",
"https": "https://127.0.0.1:8888",
}