Skip to content

Instantly share code, notes, and snippets.

Avatar

Andy Shevchenko andy-shev

View GitHub Profile
View GNUPG_agent_forwarding.md

Forward GNUPG agent with the following steps:

On the remote insecure machine:

Run gpg once to create the directory structure.

gpg --list-keys

On the local machine:

@andy-shev
andy-shev / bst.sh
Created Mar 19, 2018 — forked from iestynpryce/bst.sh
An implementation of a Binary Sort Tree in Bash. Object-like behaviour has been faked using eval. Remember that eval in shell scripting can be evil.
View bst.sh
#!/bin/sh -efu
#
# Binary search tree is of the form:
# 10
# / \
# / \
# 4 16
# / \ /
# 1 7 12
#