Skip to content

Instantly share code, notes, and snippets.

@firstnevyn
firstnevyn / GardenRailway.ino
Last active October 23, 2018 09:20
GardenRailway
#include <PulsePosition.h>
// The orange R610x only outputs 6 channels if we change to frsky this will need to be 16
const int8_t maxchans = 6 ;// this is nchannels
int8_t numchans = maxchans;
float rcvals[(maxchans+1)];
// ppm channel order for dsm2/dsmx
#define AILCHAN 1
#define ELECHAN 2
@firstnevyn
firstnevyn / logstash filter
Created December 12, 2013 00:03
a logstash filter for puppet run and compile times
if [program] == "puppetmasterd" {
grok { match => [ "message", "Compiled catalog for %{HOSTNAME:puppet_client} in %{NUMBER:puppet_compile:int} seconds" ]
}
}
if [program] == "puppetd" {
grok { match => [ "message", "Finished catalog run in %{NUMBER:puppet_runtime:float} seconds" ]
}
}