Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# Copyright 2021 Jonathan Bowman. All documentation and code contained
# in this file may be freely shared in compliance with the
# Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
# and is **provided "AS IS" without warranties or conditions of any kind**.
#
# OUT="$(mktemp)"; wget -q -O - https://gist.github.com/bowmanjd/d72e2e89996087f71ffe3e9777dea5a2/raw > $OUT; . $OUT
#
# You may read a brief synopsis at
# Copyright 2021 Jonathan Bowman. All documentation and code contained
# in this file may be freely shared in compliance with the
# Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
# and is **provided "AS IS" without warranties or conditions of any kind**.
#
# Set-ExecutionPolicy RemoteSigned -scope CurrentUser
# iwr -useb https://gist.github.com/bowmanjd/08ccc1af6419d3388aa919aee3497e06/raw | iex
#
# You may read a brief synopsis at
# https://dev.to/bowmanjd/get-github-default-branch-from-the-command-line-powershell-or-bash-zsh-37m9
#!/bin/sh
# Copyright 2021 Jonathan Bowman. All documentation and code contained
# in this file may be freely shared in compliance with the
# Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
# and is **provided "AS IS" without warranties or conditions of any kind**.
#
# OUT="$(mktemp)"; wget -q -O - https://gist.github.com/bowmanjd/d72e2e89996087f71ffe3e9777dea5a2/raw > $OUT; . $OUT
#
# You may read a brief synopsis at
# Copyright 2021 Jonathan Bowman. All documentation and code contained
# in this file may be freely shared in compliance with the
# Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
# and is **provided "AS IS" without warranties or conditions of any kind**.
#
# Set-ExecutionPolicy RemoteSigned -scope CurrentUser
# iwr -useb https://gist.github.com/bowmanjd/cd284d8da97d7d254da2c71c9761eba8/raw | iex
#
# You may read a brief synopsis at
# https://dev.to/bowmanjd/get-github-default-branch-from-the-command-line-powershell-or-bash-zsh-37m9