Skip to content

Instantly share code, notes, and snippets.

@kimburgess
kimburgess / set_running.rake
Created November 19, 2018 04:07
Example system and module driver state scripts
# frozen_string_literal: true
# On/off switch for modules, systems and zones.
namespace :set_running do
UAT_ZONE_ID = 'zone-dh6ONGpV-p'
DEVICE_MANAGEMENT_ZONE_ID = 'zone-ZYB31rEaOJ'
# ------------------------------
# Helpers
@kimburgess
kimburgess / json-builder.axi
Created August 17, 2015 06:43
Rudimentary library for building string representations of flat JSON objects.
/**
* Rudimentary library for building string representations of flat JSON objects.
*/
program_name='json-builder'
#if_not_defined __JSON_BUILDER_
#define __JSON_BUILDER_
define_constant
@kimburgess
kimburgess / RmsApiAux.axi
Created August 16, 2013 07:33
This module enables the RMS client heartbeat to be sped up and exceed the minimum interval safety threshold. It has be built to enable temporary improved response times in a *small number* of dev systems. It should probably never be used. Side affects include: irregular client heartbeats, excess server traffic, rapidly filling logs, general disg…
PROGRAM_NAME='RmsApiAux'
#IF_NOT_DEFINED __RMS_API_AUX__
#DEFINE __RMS_API_AUX__
#INCLUDE 'RmsApi'
define_constant
@kimburgess
kimburgess / gist:4943217
Created February 13, 2013 09:05
Quick outlook filter to make XTrack notifications suck less.
' Rewrite the subject of auto generated emails from XTrack so that they can be
' handled neatly by Outlook subject grouping
Sub XTrackRewrite(Item As Outlook.MailItem)
Dim ID As String
Dim c As String
ID = getXTrackID(Item)
If (ID = "") Then
Return
End If
@kimburgess
kimburgess / ModuleStateHandler.java
Created January 10, 2013 21:43
Little utility class for handling Duet module state.
package com.amxaustralia.duet.util;
import com.amx.duet.devicesdk.base.Module;
import com.amx.duet.devicesdk.base.ModuleComponentEvent;
import java.util.HashMap;
import java.util.Map;
public class ModuleStateHandler {
private static final Map instances = new HashMap();
@kimburgess
kimburgess / LICENSE
Created March 30, 2012 03:21
Updated version of graph library wrapper for signal distribution
Copyright (C) 2012 Queensland Department of Justice and Attorney General.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
@kimburgess
kimburgess / LICENSE
Created March 28, 2012 10:05
Utilization of NCL graph library for managing signal distribution
Copyright (C) 2012 Queensland Department of Justice and Attorney General.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in