Skip to content

Instantly share code, notes, and snippets.

@ChristopherA
Last active October 3, 2016 00:56
Show Gist options
  • Save ChristopherA/97aed846fcf78ded79fc7577f73f6384 to your computer and use it in GitHub Desktop.
Save ChristopherA/97aed846fcf78ded79fc7577f73f6384 to your computer and use it in GitHub Desktop.
alternatives to curl | bash -> curl to editor to bash
file=$(mktemp); curl -s "$url" > $file; $EDITOR $file; sh $file; rm $file
curl $URL | ( cat > $HOME/tmp/source; read REPLY; [[ ! $REPLY =~ ^[Yy]$ ]] && cat $HOME/tmp/source ) | sh ; rm $HOME/tmp/source
#need some cross platform way to hashpipe check.
if [[ `uname` == 'Darwin' ]]; then
alias sha256sum='openssl dgst -sha256'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment