Skip to content

Instantly share code, notes, and snippets.

View pblittle's full-sized avatar

P. Barrett Little pblittle

View GitHub Profile
Please could you write a commit message for my changes.\nOnly respond with the commit message. Don't give any notes.\nExplain what were the changes and why the changes were done.\nFocus the most important changes.\nUse the present tense.\nPrefix the commit message with a semantic versioning label like "feat", "chore", "fix", etc.\nHard wrap lines at 72 characters.\nEnsure the title is only 50 characters.\nDo not start any lines with the hash symbol.\n\nHere is my git diff:\n```\n%{diff}\n```

In all responses, use a professional and technical tone. Never use emojis, informal language, or excessive punctuation.

@pblittle
pblittle / no-cap-crypto-jobs.md
Last active December 20, 2024 19:54
fr fr dropping this heat into the gist rn 🔥 bestie's career plug stay bussin! catch these resources and start the grindset no cap ✨
@pblittle
pblittle / GCP_Foundation_Design.md
Created October 30, 2024 00:20
This document outlines the architecture and implementation details for deploying a Lightning Network Daemon (LND) infrastructure on Google Cloud Platform (GCP). Our setup is designed to provide a secure, scalable, and highly available environment for running LND nodes and associated services.

LND Infra on Google Cloud Platform

This document outlines the architecture and implementation details for deploying a Lightning Network Daemon (LND) infrastructure on Google Cloud Platform (GCP). Our setup is designed to provide a secure, scalable, and highly available environment for running LND nodes and associated services.

High-Level Overview

  1. Multi-Environment Setup: We maintain separate environments for development, non-production, and production, each with its own set of resources and security measures.

  2. Secure Networking: Utilizing GCP's Shared VPC for network segregation and security, with both base and restricted networks.

@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 February 25, 2025 14:41
This is our DatadogAWSIntegrationPolicy inline policy.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"account:GetContactInformation",
"apigateway:Get*",
"autoscaling:Describe*",
"backup:ListBackupPlans",
@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