Skip to content

Instantly share code, notes, and snippets.

View PartTimeLegend's full-sized avatar

Antony Bailey PartTimeLegend

View GitHub Profile
import math
from typing import Dict, List, Tuple
from dataclasses import dataclass
#!/usr/bin/env python3
"""
Pond Planning Application
Calculates pond capacity, fish stocking, and equipment sizing using metric measurements
"""

Guide to Connecting the TGIF DMR Network to YSF, M17, D-STAR, and Other Digital Modes Using DVSwitch

Introduction

DVSwitch is a suite of tools that allows for cross-mode communication between various digital voice modes, including DMR, YSF, M17, and D-STAR. This guide will walk you through setting up a bridge between the TGIF DMR network and other digital modes using DVSwitch.

Prerequisites

  • A Raspberry Pi or Linux-based system running DVSwitch
  • A working installation of WPSD or Pi-Star
  • An account on the TGIF Network (https://tgif.network)
🌞 Morning 286 commits ███████▌░░░░░░░░░░░░░ 35.8%
🌆 Daytime 373 commits █████████▊░░░░░░░░░░░ 46.7%
🌃 Evening 133 commits ███▍░░░░░░░░░░░░░░░░░ 16.6%
🌙 Night 7 commits ▏░░░░░░░░░░░░░░░░░░░░ 0.9%
YAML +977/ -397 ████████▉░░░░░░░░░░░░ 42.7%
Python +444/ -336 ████████▏░░░░░░░░░░░░ 39.2%
Markdown +183/ -2 █░░░░░░░░░░░░░░░░░░░░ 5.3%
TOML +166/ -3 ▉░░░░░░░░░░░░░░░░░░░░ 4.3%
JSON +42/ -22 ▋░░░░░░░░░░░░░░░░░░░░ 3.1%
HCL +24/ -24 ▋░░░░░░░░░░░░░░░░░░░░ 3.1%
CSS +78/ -0 ▎░░░░░░░░░░░░░░░░░░░░ 1.8%
Text +5/ -0 ░░░░░░░░░░░░░░░░░░░░░ 0.4%
@PartTimeLegend
PartTimeLegend / win-temp.yml
Created January 10, 2023 16:47
House Keeping Temp Files
- name: House Keeping Temp Files
hosts: "all"
ignore_errors: yes
ignore_unreachable: yes
vars:
age: 3d
# vars_prompt:
tasks:
- name: Setting Facts for Hostname
@PartTimeLegend
PartTimeLegend / namespace-service-account-secret.yaml
Last active January 9, 2023 16:47
k8s namespace, service account, and secret
# In GKE need to get RBAC permissions first with
# kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin [--user=<user-name>|--group=<group-name>]
kind: Namespace
apiVersion: v1
metadata:
name: example
---
apiVersion: v1
kind: ServiceAccount
@PartTimeLegend
PartTimeLegend / pulumi-ubuntu-jammy-wsl.sh
Created September 23, 2022 15:09
Pulumi fails to install on WSL Ubuntu Jammy
#!/usr/bin/env bash
printf '#!/bin/sh\nexec /lib64/ld-linux-x86-64.so.2 /usr/bin/gzip "$@"' | sudo tee /usr/local/bin/gzip
sudo chmod +x /usr/local/bin/gzip
curl -fsSL https://get.pulumi.com | sh
import json, botocore
from boto3.session import Session
def serialize_sets(obj):
if isinstance(obj, set):
return list(obj)
return obj
s = Session()
regions = s.get_available_regions('lambda')
$orgs = @("whereyouwork")
$users = @("parttimelegend")
$githubToken = $ENV:GitHubToken
$workspace = "C:\workspace"
$timeout = 3600
function Clone-Repos-For-Org()
{
param(
[Parameter(Mandatory=$true)][string]$org
@PartTimeLegend
PartTimeLegend / terraforming.ps1
Created July 22, 2021 09:49
Export Terraform from existing AWS Infrastructure with Terraforming
terraforming alb > alb.tf --use-bundled-cert # ALB
terraforming asg > asg.tf --use-bundled-cert # AutoScaling Group
terraforming cwa > cwa.tf --use-bundled-cert # CloudWatch Alarm
terraforming dbpg > dbpg.tf --use-bundled-cert # Database Parameter Group
terraforming dbsg > dbsg.tf --use-bundled-cert # Database Security Group
terraforming dbsn > dbsn.tf --use-bundled-cert # Database Subnet Group
terraforming ddb > ddb.tf --use-bundled-cert # DynamoDB
terraforming ec2 > ec2.tf --use-bundled-cert # EC2
terraforming ecc > ecc.tf --use-bundled-cert # ElastiCache Cluster
terraforming ecsn > ecsn.tf --use-bundled-cert # ElastiCache Subnet Group