Skip to content

Instantly share code, notes, and snippets.

View orangeblock's full-sized avatar
🦤

Daniel Datsev orangeblock

🦤
View GitHub Profile

App Engine update blob

Writing to the blostore using the Files API is deprecated. But we can upload a blob to update the blob

This way we do not need GCS (Google Cloud Storage) To use GCS you have to pay for the application

UPDATE: GCS, using a default bucket is now FREE (1.9.0)

@shivakar
shivakar / RangeHTTPServer.py
Created May 24, 2017 05:11
Python's SimpleHTTPServer extended to handle HTTP/1.1 Range requests
import os
import SimpleHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
class RangeHTTPRequestHandler(SimpleHTTPRequestHandler):
"""RangeHTTPRequestHandler is a SimpleHTTPRequestHandler
with HTTP 'Range' support"""
def send_head(self):
"""Common code for GET and HEAD commands.