This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| max_workers=16 | |
| running=0 | |
| semaphore(){ # acquire | |
| ((running++)) | |
| if (( running >= max_workers )); then | |
| wait -n # release | |
| ((running--)) | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| ghligh ls -R \ | |
| | xargs ghligh cat --json \ | |
| | jq '.[]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| regex=$* | |
| ./gh-grep "$*" | xargs -n 1 gh repo edit --visibility private --accept-visibility-change-consequences |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| regex=$* | |
| set -Eeuo pipefail | |
| gh repo list --limit 1000 --json nameWithOwner \ | |
| | jq -r '.[] | .nameWithOwner' \ | |
| | awk -F/ '{print $2 "|" $0}' \ | |
| | grep "${regex}" \ | |
| | cut -d'|' -f2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ "$#" -ne 2 ] ; then | |
| echo "usage: $0 <videoname> <number_of_parts>" | |
| exit 1 | |
| fi | |
| videoname=$1 | |
| number=$2 | |
| videoname_noext="${videoname%.*}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Simple script to update A and AAAA records on gandi.net from my homeserver | |
| ##################### config ################### | |
| api_key= | |
| domain= | |
| #####################********################### | |
| set -e |