Skip to content

Instantly share code, notes, and snippets.

View pearj's full-sized avatar

Joel Pearson pearj

  • Canberra, Australia
View GitHub Profile
@pearj
pearj / jabra.googlemeets.user.js
Last active February 19, 2022 09:12
This is the beginnings of Google Meets integration with Jabra headsets.
// ==UserScript==
// @name Jabra - Google Meets
// @namespace Violentmonkey Scripts
// @match https://meet.google.com/*
// @grant none
// @version 1.0
// @author -
// @description 19/09/2021, 11:53:37
// @requireingore https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @requireignore https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js
@pearj
pearj / heating.yaml
Last active October 17, 2021 21:35 — forked from r3mcos3/heating.yaml
Home Assistant Blueprint For Heating with Switch
blueprint:
name: Heating Control
description: Control your heating (with switch) with options for person home, if temp is below a specific value, set temp, and heating between specific times.
domain: automation
input:
heating:
name: Switch Device
description: The climate device to use.
selector:
entity:
import requests
import argparse
from subprocess import Popen, PIPE, STDOUT
import logging
import sys
import threading
import Queue
from operator import itemgetter
from base64 import b64encode
@pearj
pearj / rackspace-suppression.py
Last active August 29, 2015 14:03
Rackspace Alarm Suppression via script
"""
Script to create/delete/list Alarm Suppression for Rackspace
Since rackspace don't appear to have an API to manage Alarm Suppressions this script uses the regular web interface.
If rackspace change their web interface this script will stop working.
Web page parsing is done using http://www.crummy.com/software/BeautifulSoup/
Beautiful Soup can be installed using: sudo pip install beautifulsoup4