Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cceasy
cceasy / server.py
Created June 25, 2019 02:42 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
import logging
class S(BaseHTTPRequestHandler):
@cceasy
cceasy / thrift.rb
Created October 25, 2018 07:16 — forked from chrislusf/thrift.rb
Install Thrift 0.9.3 with brew on macOS
class Thrift < Formula
desc "Framework for scalable cross-language services development"
homepage "https://thrift.apache.org/"
stable do
url "https://www.apache.org/dyn/closer.cgi?path=/thrift/0.9.3/thrift-0.9.3.tar.gz"
sha256 "b0740a070ac09adde04d43e852ce4c320564a292f26521c46b78e0641564969e"
# Apply any necessary patches (none currently required)
[
@cceasy
cceasy / Flask on CF.md
Created August 23, 2017 04:39 — forked from ihuston/Flask on CF.md
Simple Flask application for Cloud Foundry

Simple Python Flask app on Cloud Foundry

This is a (very) simple Flask application that shows how the built-in Python buildpack detection on Cloud Foundry works.

To push to Cloud Foundry, log in and then use

$ cf push myapp-name

Python on Cloud Foundry