go run github.com/dustinkirkland/golang-petname/cmd/petname@latest -words 3
Or set -words
for a different number of words.
#!/bin/bash | |
# Breadth-first, biggest-first du -bs on each directory in current dir | |
queue=() | |
for d in */; do | |
[ -d "$d" ] && queue+=("$d") | |
done | |
while [ ${#queue[@]} -gt 0 ]; do | |
# Get sizes for all dirs in queue |
#!/bin/bash | |
set -euo pipefail | |
# actversion - Get the latest version of a GitHub Action | |
# Usage: actversion <owner>/<repo> - Get latest version of an action | |
# actversion --list <owner> - List all repos under an owner | |
# actversion --list - List well-known action owners | |
# Example: actversion actions/checkout | |
# actversion --list actions |
go run github.com/dustinkirkland/golang-petname/cmd/petname@latest -words 3
Or set -words
for a different number of words.
#!/bin/bash | |
# This script recursively dumps the contents of a secret store in Vault to a | |
# tree of .json files. | |
set -euo pipefail | |
dump_secrets() { | |
local path=$1 | |
for secret in $(vault kv list -format=json $path | jq -r '.[]'); do |