Skip to content

Instantly share code, notes, and snippets.

View chbrandt's full-sized avatar

Carlos H Brandt chbrandt

View GitHub Profile
@chbrandt
chbrandt / github_clone_all.py
Last active December 12, 2017 22:36
Download all 'user' repositories from github
# Get the list of (<100) repositories from user 'fulano' from github
# Using curl, goes like:
#$ curl https://api.github.com/users/fulano/repos?per_page=100 > github_repos.json
#
import subprocess
with open('github_repos.json','r') as fp:
import json
repos = json.load(fp)
@chbrandt
chbrandt / dummy-web-server.py
Created June 16, 2017 11:05 — forked from bradmontgomery/dummy-web-server.py
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost