This file contains hidden or 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 bash | |
set -u | |
help(){ | |
echo "" | |
echo " Usage: $(basename $0) [-n ] -f <file-commands>" | |
echo "" | |
echo " Options:" | |
echo " -h : this help message" | |
echo " -n : number of jobs to run simultaneously [default: $NPROCS]" |
This file contains hidden or 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 hidden or 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