Skip to content

Instantly share code, notes, and snippets.

@plmcgrn
plmcgrn / Apple_Music_Up_Downvote_Shortcuts.md
Last active March 10, 2024 22:59
Setting favorite/suggest less keyboard shortcuts in Apple Music for Mac

Setting favorite/suggest less keyboard shortcuts in Apple Music for Mac

Apple seems to have dropped the ball on binding these fairly important actions to native shortcut keys while also supplying them for a mountain of things most people don't carte about. This gist will show you how to correct that.

Tested on Apple Music 1.4.2.83 on MacOS Sonoma 14.2.1

What you'll need

  • Automator
  • System Settings

Suggest Less and Next Track

@plmcgrn
plmcgrn / sonos-udm-mutiple-networks.md
Last active October 31, 2024 19:23
Unifi UDM and Sonos home theater with multiple VLAN's

Overview

This goal of this setup is to put the Sonos speakers on an untrusted network to keep all but the required traffic away from the trusted network where devices like personal computers, phones, etc. live. This write-up assumes you already have two networks setup and working.

Important Note on Unifi OS 3.x

UI broke cross-VLAN multicast DNS in this version. See below for steps to install the multicast-relay script to re-enable this. Without it, your Sonos controller app will not be able to discover your speakers on the other VLAN.

System

I have a Sonos Playbar, Sub, and 2 Play:3's as rear surrounds as one home theater setup connected to a UDM (non-Pro, but this should work on Pro too). Some of this setup may be easier for people with non-paired speakers, as Sonos does some shenanigans with which speaker is actively sending traffic to your wifi.

@plmcgrn
plmcgrn / Get-GenesysCloudUsers.ps1
Created September 30, 2022 15:39
Script to get all users in a Genesys Cloud organization
#set to the appropriate org URL. Defaults to US East/mypurecloud.com
$cloudenv = 'mypurecloud.com'
#Set credentials
$clientid = 'OAuth Client ID'
$clientsecret = 'OAuth Client Secret'
#set extra properties to pull from API
$extendedproperties = "skills,groups,authorization,dateLastLogin,lasttokenissued,manager"
@plmcgrn
plmcgrn / WebRtcProvisioning.ps1
Last active August 26, 2024 08:00
Genesys Cloud Automate WebRTC Phone Creation
##################################
# Author: Paul McGurn
# Created: August 3, 2022
#
# This script is intended to run from within an Azure Automation Runbook. It queries Genesys CLoud
# for Users, determines if each has a WebRTC phone assigned, and either assigns or creates one as needed.
# There are Azure Active Directory integrations to cover mapping from AAD Office Location to Genesys Cloud Site, since
# the Genesys SCIM integration doesn't support syncing Office Location.
##################################