Skip to content

Instantly share code, notes, and snippets.

@erichmachado
erichmachado / set-git-signing-key.sh
Last active November 21, 2019 19:46
Set Git/GitHub PGP signing key
#!/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}"
@gauravchl
gauravchl / cryptography.md
Last active January 26, 2023 17:26
Useful commands for cryptography need

sha256 of a file

openssl sha -sha256 ws-test.js

sha256 of string

echo -n 'your string' | opsnssl sha -sha256

Random password 192 character

openssl rand 192

Random password in file

@datagrok
datagrok / gist:2199506
Last active April 8, 2023 17:36
Virtualenv's `bin/activate` is Doing It Wrong
@tsabat
tsabat / zsh.md
Last active December 25, 2023 19:16
Getting oh-my-zsh to work in Ubuntu