Skip to content

Instantly share code, notes, and snippets.

View victoriadrake's full-sized avatar

Victoria Drake victoriadrake

View GitHub Profile
@victoriadrake
victoriadrake / keygen.sh
Last active December 24, 2021 01:21
Generate ed25519 SSH Key
#!/bin/bash
# Generate the key
ssh-keygen -t ed25519
# Add it to the ssh-agent
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
# Set appropriate permissions
chmod 600 ~/.ssh/id_ed25519
# Show the public key so you can copy it to GitHub
@victoriadrake
victoriadrake / get-hugo-extended.sh
Created May 5, 2024 18:59
Install the latest extended version of Hugo
sudo apt-get install jq
HUGO_VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.tag_name')
curl -sSL "https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION:1}_linux-amd64.deb" -o hugo.deb
sudo dpkg -i hugo.deb
hugo version