This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// demo: CAN-BUS Shield, receive data | |
#include "mcp_can.h" | |
#include <SPI.h> | |
#include <LiquidCrystal.h> | |
#include <stdio.h> | |
#define INT8U unsigned char | |
INT8U Flag_Recv = 0; | |
INT8U len = 0; | |
INT8U buf[8]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// demo: CAN-BUS Shield, send data | |
#include <mcp_can.h> | |
#include <SPI.h> | |
//Pot for adjusting value | |
int sensorPin = A0; | |
int sensorValue = 0; | |
int cantxValue = 0; | |
void setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
########################################################## | |
# | |
# Written by Matthew McMillan, matthew.mcmillan@gmail.com | |
# | |
# Requires the boto library and a .boto file with read | |
# permissions to the queues. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
######################################### | |
# Notes | |
######################################### | |
# | |
# | |
# Author: Matthew McMillan - matthew.mcmillan@gmail.com | |
# Blog: http://matthewcmcmillan.blogspot.com | |
# Code repo: https://github.com/matt448/nagios-checks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DATE=`date +%Y%m%d-%H%M` | |
sudo tar cfvz nagios_backup_$DATE.tgz /etc/nagios3 /etc/nagios-plugins /etc/nagios /usr/lib/nagios/plugins /usr/share/pnp4nagios/html /var/lib/pnp4nagios/perfdata /var/lib/nagios /var/lib/nagios3 |
NewerOlder