Skip to content

Instantly share code, notes, and snippets.

View guydou's full-sized avatar

Guy Doulberg guydou

View GitHub Profile
@guydou
guydou / autopart.sh
Last active June 5, 2017 07:56 — forked from trentmswanson/autopart.sh
Linux bash script to partition and format all data disks in azure
#!/bin/bash
# An set of disks to ignore from partitioning and formatting
BLACKLIST="/dev/sda|/dev/sdb"
# Base directory to hold the data* files
DATA_BASE="/media"
usage() {
echo "Usage: $(basename $0) <new disk>"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
@guydou
guydou / responses.py
Created April 8, 2019 05:49
RangeResponse
from flask import request, Response
import re
class ResponseRange(Response):
""" A response that gets stream and returns partial content
"""
def __init__(self, response, *args, **kwargs):
stream = response