Skip to content

Instantly share code, notes, and snippets.

View bubthegreat's full-sized avatar

Micheal Taylor bubthegreat

View GitHub Profile
1. Reasonable
First, before you even start building software, make sure it's reasonable.
Does it use well established design patterns like https://learn.microsoft.com/en-us/azure/architecture/patterns/?
Does it make sense for the workload you're trying to service with it?
Can it operate on it's own?
Does it have pathways for expected failure points, like database connection failures, unhandled exceptions, etc.
Can it scale up in the way you've designed it if you have automated scaling?
Can you iterate on it without impacting your existing production instance and still have it tested in a valid scenario?
@bubthegreat
bubthegreat / get_cigna_ptc_files.py
Created July 2, 2022 09:41
Gets cigna payer transparency files
import json
import requests
import asyncio
import re
import os
import aiohttp
import aiofiles
import time
@bubthegreat
bubthegreat / get_local_interfaces.py
Last active April 2, 2018 22:30
Get local interfaces via socket. Modified from comments in https://gist.github.com/pklaus/289646
""" Python2/Python3 compatible method to get local interfaces with sockets. """
import socket
import array
import struct
import fcntl
def get_local_interfaces():
""" Returns a dictionary of name:ip key value pairs. """