Skip to content

Instantly share code, notes, and snippets.

View mrpnelson's full-sized avatar

Paul Nelson mrpnelson

View GitHub Profile
@mrpnelson
mrpnelson / dbsentry.py
Created July 9, 2020 23:20
DoorBirdSentry + Slack Integration
import copy
import hashlib
import io
import logging
import os
import pytz
import requests
import slack
import socket
import time
@mrpnelson
mrpnelson / mac-wipri.sh
Last active November 16, 2022 15:22
Mac WiFi Preferred Network Refresh Script
#!/bin/bash
# ------------------------------------------------------------------------------------------
# May 4, 2021 Update
# This is maintained here for reference, but it seems like the networksetup script
# is capable of doing this, at least in Big Sur. I haven't tested this on older versions.
# See https://gist.github.com/mrpnelson/c65302efed6c18300fb28c8da87bc69a#gistcomment-3731567
# for details on using the native tooling
# ------------------------------------------------------------------------------------------