openssl sha -sha256 ws-test.js
echo -n 'your string' | opsnssl sha -sha256
openssl rand 192
| #!/usr/bin/env sh | |
| # To test the script, set the GNUPGHOME to a temporary directory, e.g: | |
| # $ export GNUPGHOME="$(mktemp -d)" | |
| set -eu -o pipefail | |
| DEPENDENCIES="gpg git" | |
| EXPIRATION="${EXPIRATION:-6m}" | |
| ALGORITHM="${ALGORITHM:-RSA}" |
This article is now published on my website: Prefer Subshells for Context.
Prereq:
apt-get install zsh
apt-get install git-coreGetting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh