Skip to content

Instantly share code, notes, and snippets.

View mbillow's full-sized avatar
💼
Helping people get jobs.

Marc Billow mbillow

💼
Helping people get jobs.
View GitHub Profile
@mbillow
mbillow / keybase.md
Last active February 21, 2021 22:01

Keybase proof

I hereby claim:

  • I am mbillow on github.
  • I am mbillow (https://keybase.io/mbillow) on keybase.
  • I have a public key whose fingerprint is AC99 1722 3FB8 960F A96A CB06 4C4E 7B20 2A40 377B

To claim this, I am signing this object:

@mbillow
mbillow / consul-firewalld.md
Last active June 4, 2024 20:41
Consul FirewallD Service Definition

Consul FirewallD Service Definition

A simple service definition for Consul agents; meant to simplify the installation process of Consul.

This is based on the information provided by Hashicorp in the Consul Docs.

Installation

  1. Download the XML file:
  • Either wget {raw_url} consul.xml

Using a NodeMCU and RXB6 to Publish Doorbell Presses to MQTT

The Problem

I have a Eufy Video doorbell that does a great* job with push notifications, 2K video streaming, and providing basic doorbell functionality; all without a monthy subscription. It comes with a basic 433MHz chime that you can pair and put anywhere in your house. This doesn't really work well with a two story house... it is no where near loud enough to hear it upstairs.

* Despite notifying me that the tree in my front yard is a person when it is windy enough.

@mbillow
mbillow / update_all_country_code.scpt.js
Created May 9, 2024 19:21
JXA Update All Contacts with Country Codes
let formatPhoneNumber = (str) => {
let cleaned = ('' + str).replace(/\D/g, '');
let match = cleaned.match(/^(1|)?(\d{3})(\d{3})(\d{4})$/);
if (match) {
let intlCode = (match[1] ? '+' + match[1] : '+1')
return [intlCode + ' ', '(', match[2], ') ', match[3], '-', match[4]].join('')
}
return null;