Skip to content

Instantly share code, notes, and snippets.

View pblittle's full-sized avatar

P. Barrett Little pblittle

View GitHub Profile
@pblittle
pblittle / main.go
Last active September 5, 2024 04:28
This golf shot data processing application is designed to analyze and standardize shot data from various golf launch monitors, with current support for the Rapsodo MLM2 Pro. The app takes raw CSV data exported from a launch monitor as input, processes it to extract key metrics such as club type, total distance, and side carry, and then normalize…
package main
import (
"encoding/csv"
"fmt"
"io"
"log"
"os"
"path/filepath"
"regexp"
@pblittle
pblittle / DatadogAWSIntegrationPolicy.json
Last active August 28, 2024 14:00
This is our DatadogAWSIntegrationPolicy inline policy.
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"apigateway:Get*",
"autoscaling:Describe*",
"backup:ListBackupPlans",
"backup:ListRecoveryPointsByBackupVault",
"budgets:ViewBudget",
@pblittle
pblittle / flash-raspbian-lite.sh
Created November 2, 2018 01:55
Flash Raspbian Lite and enable SSH
diskutil umount /dev/disk2s1
dd if=Downloads/2018-10-09-raspbian-stretch-lite.img of=/dev/rdisk2 bs=1m
mount -uw /Volumes/boot
touch /Volumes/boot/ssh
@pblittle
pblittle / k8s-pi.md
Created October 9, 2018 12:20 — forked from alexellis/k8s-pi.md
K8s on Raspbian

Kubernetes on (vanilla) Raspbian Lite

Yes - you can create a Kubernetes cluster with Raspberry Pis with the default operating system called Raspbian. This means you can carry on using all the tools and packages you're used to with the officially-supported OS.

This is part of a blog post Serverless Kubernetes home-lab with your Raspberry Pis written by Alex Ellis.

Copyright disclaimer: Please provide a link to the post and give attribution to the author if you plan to use this content in your own materials.

Pre-reqs:

@pblittle
pblittle / k8s-pi.md
Created October 9, 2018 12:19 — forked from alexellis/k8s-pi.md
K8s on Raspbian

Kubernetes on (vanilla) Raspbian Lite

Yes - you can create a Kubernetes cluster with Raspberry Pis with the default operating system called Raspbian. This means you can carry on using all the tools and packages you're used to with the officially-supported OS.

This is part of a blog post Serverless Kubernetes home-lab with your Raspberry Pis written by Alex Ellis.

Copyright disclaimer: Please provide a link to the post and give attribution to the author if you plan to use this content in your own materials.

Pre-reqs:

cf cups $SERVICE_NAME -p $SERVICE_JSON || cf uups $SERVICE_NAME -p $SERVICE_JSON
@pblittle
pblittle / cf-app-names.sh
Created May 12, 2017 20:53
Returns a list of Cloud Foundry app names
cf curl /v2/apps | jq -r ".resources[].entity.name"
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "FullPolicy",
"Action": [
"acm:DescribeCertificate",
"acm:ListCertificates",
"acm:GetCertificate",
"autoscaling:Describe*",
CF_UPS_DATA=$(cf curl /v2/user_provided_service_instances | jq '.resources[].entity | select(.name=="logstash-drain")')