Skip to content

Instantly share code, notes, and snippets.

Avatar

Joe Zobkiw zobkiw

View GitHub Profile
@zobkiw
zobkiw / aws_billing.sh
Created Apr 10, 2021
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.
View aws_billing.sh
#!/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..."
View reflect.py
#!/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):