Skip to content

Instantly share code, notes, and snippets.


Raghav duaraghav8

View GitHub Profile
duaraghav8 /
Last active Apr 15, 2020
Cleanup old EBS snapshots and AMIs
# NOTE: This script is extremely destructive. Be sure to understand it before using.
# This Script deletes all old snapshots and AMIs from Amazon EBS. It only retains the latest snapshot and AMI for each volume whose snapshots exist.
# It has been tested with Python3
import boto3
# Fill this up or use sts.get_caller_identity()

Keybase proof

I hereby claim:

  • I am duaraghav8 on github.
  • I am duaraghav8 ( on keybase.
  • I have a public key ASAFdIld9-VlTblp8d2oQw_7i4Ddtel2erV_Y-9hoA5UVwo

To claim this, I am signing this object:

# Installs Python 2.7 alongside Python2.6 (which still remains the default python) on a Centos 6 machine.
sudo yum install https://$(rpm -E '%{?centos:centos}%{!?centos:rhel}%{rhel}')
yum -y install python27 python27-devel python27-pip python27-setuptools python27-virtualenv --enablerepo=ius
View eth_rpcapi_getFilter_changes_response
View default-soliumrc.json
"extends": "solium:all",
"rules": {
"quotes": [
"indentation": [
View tabber.js
#!/usr/bin/env node
'use strict';
tabber.js: Add N extra tabs at the beginning of each line of code
./tabber.js <filename> <no_of_tabs> > <output_filename>