Skip to content

Instantly share code, notes, and snippets.

View zoellner's full-sized avatar
🤓
coding

Andreas Zoellner zoellner

🤓
coding
View GitHub Profile
@zoellner
zoellner / ebextensions_nginx_loggly.config
Created March 29, 2014 06:30
Configure AWS Elastic Beanstalk syslog to poll nginx logs (in order to send them to loggly)
#
# configure rsyslogd to include logfiles from nginx/apache
# needs 010_loggly.config
# Save this file as .ebextensions/015_nginx-loggly.config
# replace TOKEN
# Deploy per normal scripts or aws.push. To help debug the push, ssh & tail /var/log/cfn-init.log
# See Also /var/log/eb-tools.log
#
files:
@zoellner
zoellner / ebextensions_loggly.config
Created March 26, 2014 02:46
Configure AWS Elastic Beanstalk to send syslog to loggly.com
#
# Install loggly.com on AWS Elastic Beanstalk
# Tested with node.js environment
# Save this file as .ebextensions/loggly.config
# Replace TOKEN and ACCOUNT with your own
# Deploy per normal scripts or aws.push.
#
commands:
01_loggly_dl:
@zoellner
zoellner / grideye.ino
Last active September 23, 2017 12:22
Grideye demo for Grid-EYE Evaluation Unit with COM-00759 RG LED Array (8x8). based on http://pewa.panasonic.com/assets/pcsd/manuals/grid-eye/grid-eye-arduino-code-examples.pdf . corrected errors in original code. Now using SPI library and serial output of data
#include <Wire.h>
#include <SPI.h>
//define our colors for LED Array
#define GREEN 0x01
#define RED 0x02
#define ORANGE 0x03
//define the SPI pins for the LED Array
#define SLAVESELECT 10//ss
char ledArray [64];
byte pixelTempL;