Skip to content

Instantly share code, notes, and snippets.

Avatar

Micheal Taylor bubthegreat

View GitHub Profile
@bubthegreat
bubthegreat / get_cigna_ptc_files.py
Created July 2, 2022 09:41
Gets cigna payer transparency files
View get_cigna_ptc_files.py
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
View get_local_interfaces.py
""" 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. """