Skip to content

Instantly share code, notes, and snippets.

View FutureSharks's full-sized avatar

Max Williams FutureSharks

View GitHub Profile
@FutureSharks
FutureSharks / settings_cbeam.h
Created January 22, 2017 14:34
TinyG G2 settings for C-Beam running Due, gShield and 2A motors
/***********************************************************************/
/**** C-Beam ******************************************/
/***********************************************************************/
// ***> NOTE: The init message must be a single line with no CRs or LFs
#define INIT_MESSAGE "Initializing configuration for C-Beam"
//**** GLOBAL / GENERAL SETTINGS ******************************************************
// Machine configuration settings
@FutureSharks
FutureSharks / app-simple.yaml
Created November 15, 2016 09:37
Kubernetes configuration to demonstrate problem with pod and cluster node autoscaling
# For this Github issue:
# https://github.com/kubernetes/kubernetes/issues/34772
#
apiVersion: v1
kind: Service
metadata:
name: my-app
labels:
name: my-app
spec:
@FutureSharks
FutureSharks / raspberrypi-picamera-motion-detection.py
Last active October 15, 2023 20:56
A simple example of using the Raspberry Pi Camera Module and python picamera for motion detection
#!/usr/bin/python
import picamera
import cv2
import io
import numpy as np
import imutils
camera = picamera.PiCamera()
@FutureSharks
FutureSharks / splunk-daemonset.yaml
Last active July 8, 2020 19:31
Creates a Kubernetes DaemonSet that will monitor container logs and forward them to a Splunk Indexer
# Create using kubectl:
# $ kubectl create -f splunk-daemonset.yaml
#
# You should also add config on your indexer to deal with the json formatted files:
# https://answers.splunk.com/answers/148307/how-to-parse-and-extract-json-log-files-in-splunk.html
#
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: splunk-forwarder