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
name: Docs | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build docs |
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 python2.7 | |
""" Print all of the (git/ssh or http) urls for all repos (public or | |
private+public with personal_token) in a GitHub account (user or organization). | |
Usage example:: | |
[HTTP_URLS=1] python2.7 list-all-repos.py account_name [personal_token] | |
It requires the pygithub3 module, which you can install on macos (Mac OSX) like this:: | |
# get pip if you don't have it |
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 | |
""" Print all of the clone-urls for a GitHub organization. | |
It requires the pygithub3 module, which you can install like this:: | |
$ sudo yum -y install python-virtualenv | |
$ mkdir scratch | |
$ cd scratch | |
$ virtualenv my-virtualenv |
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
#!/bin/bash | |
# Zip Directory | |
zip_dir='PATH' # Absolute/Relative Path | |
cd $zip_dir | |
# Timestamp | |
timestamp=$(date +%Y%m%d-%H%M%S) | |
mkdir $timestamp | |
cd $timestamp |