Skip to content

Instantly share code, notes, and snippets.

View nikhilo's full-sized avatar
🏠
Working from home

Nikhil Owalekar nikhilo

🏠
Working from home
  • TigerConnect
  • Pune, India
View GitHub Profile
import boto3
import sys
client = boto3.client('ecs')
def print_resource_usage(usage):
# print usage
print "Instance\t\t\t\tCPU\tMemory\tPorts"
print "========================================================================"
for instance in usage.keys():
@nikhilo
nikhilo / travis_log.py
Created July 19, 2017 03:23
Travis log analyzer
import re, json, datetime
from sys import argv,exit
def parse_log(filename):
try:
fh = open(filename)
except Exception as e:
print "Error in opening file: %s" % str(e)
lines = fh.readlines()
fh.close()