Skip to content

Instantly share code, notes, and snippets.

View scar86's full-sized avatar

Oscar Pacheco scar86

View GitHub Profile
@scar86
scar86 / grab_mjpeg_frame.py
Created May 7, 2018 05:45 — forked from russss/grab_mjpeg_frame.py
Grab a single frame from an MJPEG stream
#!/usr/bin/env python
import socket
import sys
if len(sys.argv) != 3:
print "Usage: %s host:port destfile.jpg" % sys.argv[0]
sys.exit(1)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host, port = sys.argv[1].split(':')
@scar86
scar86 / System Design.md
Created August 12, 2019 05:03 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?