Skip to content

Instantly share code, notes, and snippets.

@shrumit
shrumit / Python3 HTTP Server.py
Created March 11, 2019 17:15 — forked from Integralist/Python3 HTTP Server.py
Python3 HTTP Server.py
import time
from http.server import BaseHTTPRequestHandler, HTTPServer
HOST_NAME = 'localhost'
PORT_NUMBER = 9000
class MyHandler(BaseHTTPRequestHandler):
def do_HEAD(self):
self.send_response(200)
@shrumit
shrumit / ami-per-region.sh
Created March 7, 2019 18:57 — forked from khous/ami-per-region.sh
Enumerate public AMIs per region
#!/usr/bin/env bash
echo "Searching for image where name begins with $1"
regions=$(aws ec2 describe-regions --output text --query 'Regions[*].RegionName')
for region in $regions; do
(
echo "$region $( aws ec2 describe-images --region $region --filters Name=is-public,Values=true Name=name,Values="$1*" | grep ImageId )"
)
done
@shrumit
shrumit / gsoc2016.md
Last active August 23, 2016 15:42
Google Summer of Code 2016

Summer of Code 2016 - cBioPortal for Cancer Genomics

Project: OQL Editor

Student: Shrumit Mehta

Mentor: Adam Abeshouse

This Gist is a summary of my work for GSoC 2016 with cBioPortal for Cancer Genomics.

Code

My GSoC project code resides in this repository: