hashFiles() {
local files=("$@")
if [[ ${#files[@]} -eq 0 ]]; then
echo "Error: No files provided" >&2
return 1
}
sha256sum "${files[@]}" 2>/dev/null | sort | sha256sum | cut -d' ' -f1
}
# Usage example:
CURRENT_HASH=$(hashFiles pyproject.toml poetry.lock)
direnv stdlib | grep -o -E "^(\w+)\(\)"
...
use_node()
use_nodenv()
use_nix()
use_flake()
use_guix()
use_vim()
direnv_version()
on_git_branch()
version="v$(poetry version --short)-rev.$(git rev-parse --short HEAD)"
git tag -a "$version" -m "Release $version"
In Github is easy, just convert this
git clone [email protected]:rtyley/small-test-repo.git
to this
git clone ssh://[email protected]:443/rtyley/small-test-repo.git
You will be able to clone the repository using SSH over port 443, which is typically open on most networks.