Skip to content

Instantly share code, notes, and snippets.

@kimburgess
kimburgess / set_running.rake
Created Nov 19, 2018
Example system and module driver state scripts
View set_running.rake
# 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 Aug 17, 2015
Rudimentary library for building string representations of flat JSON objects.
View json-builder.axi
/**
* 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 Aug 16, 2013
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…
View RmsApiAux.axi
PROGRAM_NAME='RmsApiAux'
#IF_NOT_DEFINED __RMS_API_AUX__
#DEFINE __RMS_API_AUX__
#INCLUDE 'RmsApi'
define_constant
@kimburgess
kimburgess / gist:4943217
Created Feb 13, 2013
Quick outlook filter to make XTrack notifications suck less.
View gist:4943217
' 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 Jan 10, 2013
Little utility class for handling Duet module state.
View ModuleStateHandler.java
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 Mar 30, 2012
Updated version of graph library wrapper for signal distribution
View LICENSE
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 Mar 28, 2012
Utilization of NCL graph library for managing signal distribution
View LICENSE
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