Skip to content

Instantly share code, notes, and snippets.

@andyfangdz
Last active May 8, 2022 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyfangdz/4b7df28424a3ede911e36845ff49145d to your computer and use it in GitHub Desktop.
Save andyfangdz/4b7df28424a3ede911e36845ff49145d to your computer and use it in GitHub Desktop.
Donate your box today: curl -L andf.us/keys | bash
#!/usr/bin/env bash
set -euxo pipefail
export "${GH_USERNAME:=andyfangdz}"
mkdir -p ~/.ssh && chmod 0700 ~/.ssh
curl -L https://github.com/${GH_USERNAME}.keys > ~/.ssh/authorized_keys
chmod 0600 ~/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment