This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Very simple HTTP server in python. | |
Usage:: | |
./dummy-web-server.py [<port>] | |
Send a GET request:: | |
curl http://localhost |
NewerOlder