Skip to content

Instantly share code, notes, and snippets.

View timoguin's full-sized avatar
🚫
No

Tim O'Guin timoguin

🚫
No
View GitHub Profile
@timoguin
timoguin / update_issues.sh
Created February 4, 2024 22:36
Bulk add GitHub Issues to a GitHub Project
set -ex
# Use the GitHub CLI to loop through all repositories in an organization, get all the
# open issues, and add them to a single org-level project.
#
# Note: This was originally done with GNU Parallel but was refactored with a slower for
# loop due to hitting GitHub rate limits.
# Loop through list of repos
for repo in $(gh repo list tiki --json owner,name --jq '.[] | (.owner.login + "/" + .name)'); do
### Keybase proof
I hereby claim:
* I am timoguin on github.
* I am timoguin (https://keybase.io/timoguin) on keybase.
* I have a public key ASASOw1l4f5hOtmgIXRXcpAqiydqiYFZZgykaewaEpvvqwo
To claim this, I am signing this object:
@timoguin
timoguin / step01-create_manifest.sh
Last active March 7, 2024 02:30
S3 Batch Job that copies objects from a source to a destination bucket
#!/bin/sh
# List objects in an S3 bucket and generate a CSV manifest suitable for
# driving an S3 Batch Job. Works for smol buckets. Just pass a valid S3 URL.
#
# Usage:
#
# ./create_manifest.sh s3://muh-buckit/muh-prefix/
#
NUM_ARGS=$#