Skip to content

Instantly share code, notes, and snippets.

View ss-o's full-sized avatar
:octocat:

Sall ss-o

:octocat:
View GitHub Profile
@ss-o
ss-o / docker-dnscrypt.sh
Last active December 24, 2022 08:33
DNSCrypt
#!/usr/bin/env bash
SERVER="$(hostname)"
SERVER_HOST_V4="$(curl -4 -s 'https://api.ipengine.dev' | jq -r '.network.ip')" || SERVER_HOST_V4="$(ip route get 8.8.8.8 | grep src | sed 's/.*src \(.* \)/\1/g' | cut -f1 -d ' ')"
SERVER_HOST_V6="$(curl -6 -s 'https://api.ipengine.dev' | jq -r '.network.ip')" || SERVER_HOST_V6="$(ip -6 addr | sed -ne 's|^.* inet6 \([^/]*\)/.* scope global.*$|\1|p' | head -1)"
SSHPORT='22'
DNSPORT='443'
apt-get update && apt-get upgrade -y
sed -ri -e "s/^#Port.*|^Port.*/Port $SSHPORT/" \
@sinewalker
sinewalker / keybase.md
Last active January 8, 2025 21:20
How to import pub/sec PGP keys from keybase to your local GPG keyring.

Import Keybase PGP to GPG

After installing the keybase command-line tool onto a new / fresh computer, you may want to import your PGP key to the local keyring so that you may use the keys with GPG.

Import your PUBLIC PGP key:

keybase pgp export|gpg --import -