Skip to content

Instantly share code, notes, and snippets.

View HeinrichHartmann's full-sized avatar

Heinrich Hartmann HeinrichHartmann

View GitHub Profile
@HeinrichHartmann
HeinrichHartmann / gh-issue-fetch.py
Created May 5, 2021 07:16
Pull issues into local text files via GH CLI
#!/usr/bin/env python
"""
SYNOPSIS
gh-issue-fetch [-R <repository url>] [-d <output directory>]
DESCRIPTION
Fetch all issues from a GH repository into local text files.
By default issues are placed in ./issues/*, this can be
changed by using the -d flag.
@HeinrichHartmann
HeinrichHartmann / provision-osx.md
Created October 8, 2021 18:02
Provision OSX Machine
with builtins;
let
div = x: y: if y / x * x == y then true else false;
divany = L: x:
if (length L) == 0 then
false
else if (div (head L) x) then
true
else
(divany (tail L) x);