Skip to content

Instantly share code, notes, and snippets.

View maazbin's full-sized avatar

Maaz Bin Mustaqeem maazbin

View GitHub Profile
@jamil666
jamil666 / Amazon_CloudWatch_EC2_CPU_Utilization
Created December 20, 2017 07:07
This script describe all EC2 instances from Amazon AWS and check CPU utilization. If CPU load more than 50%, it will send email to administrator
import boto3
from datetime import datetime, timedelta
from operator import itemgetter
import smtplib
from email.mime.text import MIMEText
AccessKey = "Your Access Key"
SecretKey = "Your Secret Key"
@YuMS
YuMS / update-git.sh
Created June 29, 2016 09:28
Update git to latest version on Ubuntu
#!/bin/bash
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git -y