Skip to content

Instantly share code, notes, and snippets.

View wzdiyb's full-sized avatar

wzd wzdiyb

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