Skip to content

Instantly share code, notes, and snippets.

View jacobdepriest's full-sized avatar

Jacob DePriest jacobdepriest

  • GitHub
  • DMV
View GitHub Profile
@jacobdepriest
jacobdepriest / elgato.md
Created September 27, 2021 20:02
Controlling Elgato Key Light Air from CLI

Situation

Wanted to control my Elgato Key Light Airs from macOS Tough Bar

Shell script

curl --location --request PUT 'http://[local ip]:9123/elgato/lights' \
--header 'Content-Type: application/json' \
--data-raw '{"lights":[{"brightness":16,"temperature":158,"on":1}],"numberOfLights":1}'
@jacobdepriest
jacobdepriest / codespaces-and-jekyll.md
Last active April 16, 2024 08:30
Using GitHub Codespaces to edit a Jekyll Static Site

Using GitHub Codespaces is my new default for editing a static Jekyll site

  1. Navigate to a repo where you have your Jekyll static site (maybe your GitHub pages site)
  2. Launch Codespaces (Code button -> Cloud -> New codespace on current branch)
  3. Once it's launched, run the following in the terminal
gem install bundler jekyll
bundle update
bundle exec jekyll serve