Skip to content

Instantly share code, notes, and snippets.

View NinjacksonXV's full-sized avatar
Learning... Slowly

Ninjackson NinjacksonXV

Learning... Slowly
View GitHub Profile
@NinjacksonXV
NinjacksonXV / github-fetch-dir.sh
Last active April 4, 2025 17:53
Fetches a directory from a Github repository tree URL. I use this to pull individual configuration files when accessing one of my remote machines.
#!/usr/bin/env bash
# Dependencies: gh, jq
# TODO:
# - [ ] Create fallback with bash RegEx to replace jq calls
# - [ ] Create fallback with curl to replace gh calls
bold=$(tput bold)
normal=$(tput sgr0)