Skip to content

Instantly share code, notes, and snippets.

View SeanMcTex's full-sized avatar

Sean "Sharky" McMains SeanMcTex

View GitHub Profile

Keybase proof

I hereby claim:

  • I am seanmctex on github.
  • I am seanmctex (https://keybase.io/seanmctex) on keybase.
  • I have a public key ASDT7FKVZ32O8_2qtx6d_Yi7qB9RMudVa81HwX8lLC3QhQo

To claim this, I am signing this object:

@SeanMcTex
SeanMcTex / lights-camera-action.sh
Last active May 6, 2022 02:45
Script to turn on/off light for videoconferencing automatically. Requires a Mac, Oversight, and Shortcuts app.
#!/bin/bash
# To use this script:
# 1. Save it on your Mac hard drive somewhere convenient.
# 2. `chmod` its permissions to make it executable. E.g. `chmod 755 handle-camera.sh`.
# 3. In the Shortcuts app, create "Start Conference" and "End Conference" shortcuts that activate lights
# and do whatever else you want to happen when conferences start and end.
# 4. Download and install Oversight to watch for camera activation/deactivation:
# https://objective-see.com/products/oversight.html
# 5. Configure Oversight's "action" panel to run this script. Turn on the option that passes arguments.
@SeanMcTex
SeanMcTex / NuclearBodhran.ino
Created April 25, 2023 14:32
Code for sound-reactive bodhran (Irish drum), as per article at http://www.mcmains.net.
/* Sound-Reactive Drums for Adafruit Gemma/Trinket and NeoPixel LEDs.
Hardware requirements:
- Adafruit Gemma, Gemma M0, or 3V Trinket microcontroller.
Do NOT use a 5V Trinket; circuit DEPENDS on the 3V regulator!
- Adafruit Electret Microphone Amplifier (product ID: 1063)
- A length of NeoPixel LEDs, such as:
o Adafruit Flora RGB Smart Pixels (ID: 1260)
o Adafruit NeoPixel Digital LED strip (ID: 1138)
o Adafruit Neopixel Ring (ID: 1463)