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 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",
@mbierman
mbierman / addremotesyslog.sh
Last active April 22, 2025 01:23
Add a remote syslog server to Firewalla
#!/bin/bash
# v 2.1.0
syslog=/etc/rsyslog.d/09-externalserver.conf
# this logs notice and above. use *.* log everything.
filter=*.notice
server=192.168.0.19 # Change the server to the IP of your syslog server.
port=514
hostname=firewalla
valid=$(grep "$server:$port" $syslog 2>/dev/null)
@alexbosworth
alexbosworth / inotify-channel-backup.md
Last active April 11, 2025 06:09
Backup channel.backup file using systemd and inotify

LND backup script for channel.backup using inotify

Install inotify

sudo apt install inotify-tools

Create script to watch for changes and copy on change

A description of known problems in Satoshi Nakamoto's paper, "Bitcoin: A Peer-to-Peer Electronic Cash System", as well as notes on terminology changes and how Bitcoin's implementation differs from that described in the paper.

Abstract

The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.

@chris-belcher
chris-belcher / JMalert.md
Last active May 31, 2023 05:07
JoinMarket release 0.2.0 ameliorates this snooping attack.

Keybase proof

I hereby claim:

  • I am pblittle on github.
  • I am pblittle (https://keybase.io/pblittle) on keybase.
  • I have a public key ASCcLVaRmtIgqYFDdGLevHMO2S19-z-q84Nfa7Eb9UfbAwo

To claim this, I am signing this object:

@rkoster
rkoster / bosh_jobs_dependencies.rb
Created August 11, 2015 09:47
A script for displaying the job dependencies of the cf-relase in a markdown table.
#! /usr/bin/env ruby
# coding: utf-8
require 'yaml'
jobs = Dir['jobs/*'].map { |j| File.basename(j) }
print "∑ | Job | Property | Description\n --- | --- | --- | ---\n"
jobs.map! do |job|
spec = YAML.load_file(File.join("jobs", job, "spec"))
@drnic
drnic / rebind-apps.rb
Created May 22, 2015 22:12
Rebind all applications for a Cloud Foundry service
#!/usr/bin/ruby
require 'rubygems'
require 'json'
require 'pp'
# for the #sh helper
require "rake"
require "rake/file_utils"
include FileUtils
## PREREQ: Using CF cli tools, make sure you've logged in as a user (admin) who can see all orgs/spaces
@ryanjbaxter
ryanjbaxter / bluegreen.sh
Last active May 16, 2018 20:14
Blue/Green Deployment Script
#!/bin/bash
#
# This product includes software originally developed by IBM Corporation.
#
#
# Copyright IBM Corp. 2015
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at