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-core
Getting 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