Skip to content

Instantly share code, notes, and snippets.

View maverick85's full-sized avatar

Ricardo maverick85

  • Portugal
View GitHub Profile
@benjaminrau
benjaminrau / Readme.md
Last active March 12, 2024 09:15
Home Assistant (HASS) with Homekit, Television Volume Control and Fire TV Stick connected to Sony Bravia

Home Assistant (HASS) with Homekit, Television Volume Control and Fire TV Stick connected to Sony Bravia

Basically it integrates and older Sony Bravia TV with Fire TV Stick on HDMI via Home Assistant in Apple Homekit with Siri Voice Control for Volume, Mute and Turning TV on and off.

Features of my setup

  • Voice control for television on, off, mute, set volume, play, pause
  • Control for television on, off, mute, set volume and input (which app to start) in Home app
  • Turn on TV light scene when TV starts playing
  • iOS Remote Widget inputs are forwarded to media player & Android TV

Used Integrations

@startergo
startergo / extract-firmware.md
Last active July 1, 2024 07:30
Extract Firmware from OS X installer
  • Download the full installer:
softwareupdate --list-full-installers
Finding available software
Software Update found the following full installers:
* Title: macOS Ventura, Version: 13.1, Size: 11931164KiB, Build: 22C65
* Title: macOS Ventura, Version: 13.0.1, Size: 11866460KiB, Build: 22A400
* Title: macOS Ventura, Version: 13.0, Size: 11866804KiB, Build: 22A380
* Title: macOS Monterey, Version: 12.6.2, Size: 12104568KiB, Build: 21G320
* Title: macOS Monterey, Version: 12.6.1, Size: 12108491KiB, Build: 21G217
@Josh5
Josh5 / calculate_apache_mpm_config.sh
Last active June 19, 2024 13:26
A rough calculation of Apache MPM config
#!/bin/bash
#
# @Author: Josh Sunnex
# @Date: 2019-01-31 10:26:00
# @Last Modified by: josh5
# @Last Modified time: 2019-01-31 10:36:07
#
# usage:
# curl -sSL https://gist.githubusercontent.com/Josh5/ff6ccfe4c75ae27a3f1efebcb645e7c4/raw/calculate_apache_mpm_config.sh | bash -s [PID]
#
@ApoorvKhatreja
ApoorvKhatreja / np.scpt
Created November 28, 2012 16:23
Now Playing script for Textual that works for both online radio streams and music library.
on textualcmd()
set nowPlaying to "I'm not currently playing anything."
# iTunes
if isRunning("iTunes") then
tell application "iTunes"
if player state is playing then
if current stream title is not missing value then
set nowPlaying to "/me is currently listening to '" & current stream title & "' on " & name of current track & "."