Skip to content

Instantly share code, notes, and snippets.

@lionep
lionep / 97-offline_backup.rules
Created June 15, 2024 14:21
Systemd / udev offline backup script
ACTION=="add", ENV{ID_PART_ENTRY_UUID}=="0b8e6986-ec09-8e44-b31f-38e944220a66", TAG+="systemd", ENV{SYSTEMD_WANTS}="offline-backup-connected.service"
@lionep
lionep / README.md
Created January 22, 2024 22:56
Simple express server to mock the UDM unifi talk config files sent to freeswitch

Run this script on another machine, and switch in /etc/freeswitch/autoload_configs/xml_curl.conf.xml the URL for binding=configuration. Then relanch unifi-talk, and the new configuration should be fetched by freeswitch.

@lionep
lionep / docker-compose.yml
Created June 30, 2023 13:37
OneUptime clean docker-compose
version: '3.7'
services:
haraka:
image: oneuptime/haraka:release
expose:
- 2525
networks:
- internal
restart: always
@lionep
lionep / smsl.lirdc.conf
Created May 21, 2021 21:08
SMSL Q5 - A6 - A8 Lirc config
# Please take the time to finish this file as described in
# https://sourceforge.net/p/lirc-remotes/wiki/Checklist/
# and make it available to others by sending it to
# <lirc@bartelmus.de>
#
# This config file was automatically generated
# using lirc-0.10.1(default) on Fri May 21 20:37:33 2021
# Command line used: -H default
# Kernel version (uname -r): 5.4.0-1035-raspi
'use strict';
var net = require('net');
var kue = require('kue');
var app = {};
app.$queue = kue.createQueue();
app.$queue.process('stream-demo', function(job, done) {
'use strict';
var net = require('net');
var kue = require('kue');
var app = {};
app.$queue = kue.createQueue();
var job = app.$queue.create('stream-demo').save();