Skip to content

Instantly share code, notes, and snippets.

View llamafilm's full-sized avatar

Elliott Balsley llamafilm

View GitHub Profile
@llamafilm
llamafilm / barco_projector_test.md
Created April 8, 2024 15:16
Telegraf config for Barco projector

This is the base SNMP config for Barco projector, with string fields recorded as tags.

[agent]
  omit_hostname = true
  snmp_translator = "gosmi"
  quiet = true

[[inputs.snmp]]
  alias = "5913"
@llamafilm
llamafilm / Dockerfile
Last active March 26, 2024 01:32
LG WebSocket connection
FROM ubuntu:latest
RUN apt update && apt install -y \
git \
lua5.3 \
liblua5.3-dev \
luarocks \
libssl-dev \
nano
RUN luarocks install http
@llamafilm
llamafilm / sunset_appreciation.gs
Created December 18, 2023 05:47
Create google calendar event for sunset appreciation each day
/**
* Creates an event in the user's default calendar.
* @see https://developers.google.com/calendar/api/v3/reference/events/insert
*/
function createEvent(start) {
const calendarId = 'primary';
// make end time 15 minutes after start
var m = 15; // minutes
var end = new Date();
@llamafilm
llamafilm / QDP-faker.py
Created November 27, 2023 22:23
QDP faker
import time
import socket
import requests
import xml.etree.ElementTree as ET
# Tested with Qsys Core Nano version 9.9.0
# Packets captured from TSC-80-G2 using tcpdump
# This looping code allows the Core to discover a touchpanel on a network without multicast
CORE_IP = 'xxx.xxx.xxx.xxx'

Installing a Colorfront central linux database

Instructions are current for Transkoder 2020.
This has been tested on CentOS 7.9, but you can adapt to other distributions. Throughout this guide, the # symbol signifies running a shell command as root.

Install LAMPP web server

Supported versions:

  • PHP 7.1 - 7.2
  • MariaDB 10.1 - 10.4
  • Apache 2.4
@llamafilm
llamafilm / python-sap.py
Created January 16, 2022 03:29
unfinished partial implementation of SAP (Session Announcement Protocol)
import socket
import time
import sdp_transform
# unfinished partial implementation of SAP (Session Announcement Protocol)
# https://datatracker.ietf.org/doc/html/rfc2974
MCAST_GRP = '239.255.255.255'
MCAST_PORT = 9875
MCAST_TTL = 255

Installing a Colorfront central linux database

Instructions are current for Transkoder 2020.
This has been tested on Ubuntu 20.04, but you can adapt to other distributions.

Install LAMPP web server

Supported versions:

  • PHP 7.1 - 7.2
  • MariaDB 10.1 - 10.3
  • Apache 2.4