Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View zobkiw's full-sized avatar

Joe Zobkiw zobkiw

View GitHub Profile
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
@zobkiw
zobkiw / aws_billing.sh
Created April 10, 2021 12:35
aws_billing - assuming a proper install and configuration of the aws cli and jq, call this script with the name of a configured profile (or default) and it will print out a summary of your bill.
#!/bin/bash
profile=$1 # aws config profile name or default ie: ./aws_billing.sh default
if [ -z $1 ]; then
echo "profile must be the first and only parameter...exiting."
exit 0
fi
echo "Gathering pricing information for DAY BEFORE YESTERDAY..."