Skip to content

Instantly share code, notes, and snippets.

View patrickglass's full-sized avatar

Patrick Glass patrickglass

View GitHub Profile
@patrickglass
patrickglass / betaflight.txt
Created July 17, 2024 01:43
Betaflight SpeedyBeeF7_V3 Configuration
# diff all defaults
# version
# Betaflight / STM32F7X2 (S7X2) 4.5.0 Jun 28 2024 / 10:31:50 (c155f5830) MSP API: 1.46
# config rev: 617fd37
# start the command batch
batch start
# reset configuration to default settings
@patrickglass
patrickglass / prepare-image.sh
Last active January 27, 2024 09:55
Proxmox Host Template Setup Script
#!/bin/bash -ex
#
# This script is used to prepare an Ubuntu Image for Cloning
#
# curl -sSL https://gist.githubusercontent.com/patrickglass/ee7b817703723e05dedea8ef13d9a160/raw/271bb9ed277e1f66c866ab334f86bf9d5f12dd23/prepare-image.sh | sudo bash
#
set -x
set -e
# Script must be run as root
@patrickglass
patrickglass / radarr_import.py
Created December 15, 2022 06:42
Radarr Dirty CSV Import Python Script
#!/bin/python3
import os
import csv
import time
import requests
class RadarrAPI:
def __init__(self, url="http://localhost:7878", apikey=os.getenv("RADARR_API_KEY")) -> None:
@patrickglass
patrickglass / HAL-CLA.md
Last active December 6, 2020 18:26
HAL Platform CLA

Fiduciary License Agreement 2.0

based on the

Individual Contributor Exclusive License Agreement

(including the Traditional Patent License OPTION)

@patrickglass
patrickglass / aws_auth.py
Created October 3, 2017 05:28
Get temporary STS Session Token using API Keys and MFA Token
#!/usr/bin/env python
import os
import click
import boto3
CREDS_FILE = '~/.aws-sts-creds'
@click.command()
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
Plugin 'VundleVim/Vundle.vim'
#!/usr/bin/python
import re
import click
import requests
import digitalocean
@click.command()
@click.argument('domain_name')
@click.argument('record_name')
### Keybase proof
I hereby claim:
* I am patrickglass on github.
* I am patrickglass (https://keybase.io/patrickglass) on keybase.
* I have a public key whose fingerprint is 9494 0613 AFC3 26BD 2747 B7C7 5835 DB6E 3AF5 4055
To claim this, I am signing this object: