Skip to content

Instantly share code, notes, and snippets.

@cliffrowley
cliffrowley / macos_bigsur_homebrew_mysql56_mysql2_gem.md
Created January 17, 2023 15:56
macOS Big Sur + Homebrew MySQL 5.6 + Ruby mysql2 gem
bundle config build.mysql2 \
  --with-mysql-config=/usr/local/opt/mysql@5.6/bin/mysql_config \
  --with-ldflags=-L/usr/local/opt/openssl/lib \
  --with-cppflags=-I/usr/local/opt/openssl/include
@cliffrowley
cliffrowley / RASPBERRY_PI_DESKTOP_BABY_MONITOR.md
Last active November 8, 2020 20:22
A Raspberry Pi Desktop Baby Monitor

My Raspberry Pi Desktop Baby Monitor

With the arrival of our little one, I wanted a way to be able to monitor him in his crib while I'm at my desk. I already have a Raspberry Pi with its own 7" monitor and figured I'd put it to work (the Pi, not the baby :P).

Notes

My Pi sits on my desk with a minature keyboard and trackpad nearby, but usually they are stowed away as I access it remotely from my laptop. I also have some commands hooked into Siri so I can start and stop the monitor via voice commands.

This setup assumes that like me, you will also want to start and stop the monitor via some external mechanism. If you keep a keyboard and mouse plugged into your Pi and use it as a desktop, you may just as well skip this setup and simply run VLC with the URL of your camera's RTSP stream.

@cliffrowley
cliffrowley / init.lua
Last active July 8, 2020 02:13
My Hammerspoon config
--
-- Creates an application hotkey.
--
function bind_hotkey(mods, key, name)
return hs.hotkey.bind(mods, key, name, function ()
hs.application.open(name)
end)
end
@cliffrowley
cliffrowley / STREAMDECK_HID.md
Last active February 20, 2024 06:24
Notes on the Stream Deck HID protocol

Stream Deck Protocol

How to interface with a Stream Deck device.

Synopsis

The device uses the HID protocol to communicate with its software.

Configuration

@cliffrowley
cliffrowley / habitus.rb
Last active July 8, 2020 02:16
Homebrew formula for Habitus
class Habitus < Formula
desc "A standalone build flow tool for Docker"
homepage "http://www.habitus.io"
head "https://github.com/cloud66/habitus.git"
depends_on "go" => :build
def install
contents = Dir["{*,.git,.gitignore}"]
gopath = buildpath/"gopath"