Skip to content

Instantly share code, notes, and snippets.

Avatar

wzd wzdiyb

View GitHub Profile
@wzdiyb
wzdiyb / ci.yml
Created Jan 23, 2021 — forked from epicfaace/ci.yml
encrypting an entire github pages (mkdocs) website with staticrypt - replace MY_PASSWORD and "YOUR SITE NAME HERE"
View ci.yml
name: Docs
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build docs
@wzdiyb
wzdiyb / list-all-repos.py
Created Feb 15, 2020 — forked from RichardBronosky/list-all-repos.py
Script to list all repos for a github organization
View list-all-repos.py
#!/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
@wzdiyb
wzdiyb / list-all-repos.py
Created Feb 15, 2020 — forked from ralphbean/list-all-repos.py
Script to list all repos for a github organization
View list-all-repos.py
#!/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
@wzdiyb
wzdiyb / gitzip.sh
Last active Sep 3, 2020
Download Github Repos as zip
View gitzip.sh
#!/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