Skip to content

Instantly share code, notes, and snippets.

<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$f3 = Base::instance();
$f3->receivers = [
[
"url" => "http://rdmserver123:9001/raw",
@AGWA
AGWA / rpi-hdmi.sh
Last active June 9, 2024 15:15
Enable and disable the HDMI port on the Raspberry Pi: `rpi-hdmi on` to turn on, `rpi-hdmi off` to turn off. X is properly reinitialized when re-enabling.
#!/bin/sh
# Enable and disable HDMI output on the Raspberry Pi
is_off ()
{
tvservice -s | grep "TV is off" >/dev/null
}
case $1 in