You need ok.sh (https://github.com/whiteinge/ok.sh) and JQ (http://stedolan.github.io/jq) to use these snippets.
- Delete a collaborator from all of your repositories (e.g. in case a developer left the company)
ok.sh -j list_repos | jq -r -c '.[] | "\(.full_name)"' | xargs -I % sh -c './ok.sh -y delete_collaborator % [USERNAME]'